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.
|
||||
except Exception as error:
|
||||
session.rollback()
|
||||
log.exception("execution failed for object: {}".format(obj))
|
||||
log.exception("{} failed to execute: {}".format(self.get_model_title(), obj))
|
||||
session.close()
|
||||
if progress:
|
||||
progress.session.load()
|
||||
|
|
Loading…
Reference in a new issue