X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/beac9fec3de5fa66dfc80ed119c4bdd812e9e2c2..008b2c8d44987a6ef6b405ffc2124f28d3c6220d:/src/alerts/models.py?ds=sidebyside diff --git a/src/alerts/models.py b/src/alerts/models.py index 66d1bff7..132531fd 100644 --- a/src/alerts/models.py +++ b/src/alerts/models.py @@ -21,7 +21,7 @@ class Alert(models.Model): cls.objects.filter(book=book).delete() try: wlbook = book.wldocument(publishable=False, librarian2=True) - except Exception: + except Exception as e: cls.objects.create(book=book, tag='parse', comment=str(e)) return