From: Boris Bobrov Date: Tue, 23 Feb 2016 01:03:27 +0000 (+0300) Subject: do not show error message when it's not a exception X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5eaf6c1120d9d14b0ea8b5393abb331871b9d96e;p=mediagoblin.git do not show error message when it's not a exception Gah, the previous patch was not enough! We cannot use text, we can only use exception with a special attribute. Lets return safe None for now an resolve this properly later, when we're not in the freeze. --- diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index c8c5f95c..e8b121d0 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -340,7 +340,7 @@ class MediaEntryMixin(GenerateSlugMixin, GeneratePublicIDMixin): # we could show even some raw python things. Anyway, this # should be properly resolved. Now we are in a freeze, that's # why I simply catch ImportError. - return self.fail_error + return None def get_license_data(self): """Return license dict for requested license"""