X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a959320586b7ff20888129977d92ae8de414e5d7..d4cd02c048d596c06db45e972489aeb373adeb78:/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