Tweak logging when object fails to be executed

This commit is contained in:
Lance Edgar 2017-08-07 23:07:36 -05:00
parent e14b5a89c3
commit 2714d3c03c

View file

@ -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()