X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a959320586b7ff20888129977d92ae8de414e5d7..1e340beb1a4b127a7ad412ae44c3d7ee1c0ee0eb:/apps/organizations/models.py diff --git a/apps/organizations/models.py b/apps/organizations/models.py index 0761b669..6a7aa7ac 100644 --- a/apps/organizations/models.py +++ b/apps/organizations/models.py @@ -83,7 +83,7 @@ class Card(models.Model): p = getattr(self, "preview_html_%s" % lang) assert p return p - except AssertionError: + except (AssertionError, AttributeError): return self.preview_html