update librarian
[redakcja.git] / apps / organizations / models.py
index 0761b66..6a7aa7a 100644 (file)
@@ -83,7 +83,7 @@ class Card(models.Model):
             p = getattr(self, "preview_html_%s" % lang)
             assert p
             return p
             p = getattr(self, "preview_html_%s" % lang)
             assert p
             return p
-        except AssertionError:
+        except (AssertionError, AttributeError):
             return self.preview_html
 
 
             return self.preview_html