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