X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/482a9275485e8326dd056e03679968c1270367c1..180cb43d814a4abe2811f29630ffffaaf9cfa9b7:/src/depot/models.py?ds=sidebyside diff --git a/src/depot/models.py b/src/depot/models.py index 41a6bdfa..62a360aa 100644 --- a/src/depot/models.py +++ b/src/depot/models.py @@ -174,9 +174,9 @@ class SiteBookPublish(models.Model): self.site_book.site.publish(self, changes=changes) - except Exception: + except Exception as e: self.status = 110 - self.error = traceback.format_exc() + self.error = str(e) + '\n\n' + traceback.format_exc() else: self.status = 100 self.error = ''