From 8a6efdde5fcb28fb6d82695548a3412829a3e6a2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 23 May 2022 12:18:18 +0200 Subject: [PATCH] fix --- src/alerts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1