X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/67a40d0e0c6b359b3855e256551ed1b8aece64c3..27bed5683e1619659c96f6ca58dd42cf49be4c67:/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