Tweak logging when object fails to be executed
This commit is contained in:
parent
e14b5a89c3
commit
2714d3c03c
|
@ -833,7 +833,7 @@ class MasterView(View):
|
||||||
# If anything goes wrong, rollback and log the error etc.
|
# If anything goes wrong, rollback and log the error etc.
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
session.rollback()
|
session.rollback()
|
||||||
log.exception("execution failed for object: {}".format(obj))
|
log.exception("{} failed to execute: {}".format(self.get_model_title(), obj))
|
||||||
session.close()
|
session.close()
|
||||||
if progress:
|
if progress:
|
||||||
progress.session.load()
|
progress.session.load()
|
||||||
|
|
Loading…
Reference in a new issue