From 5eaf6c1120d9d14b0ea8b5393abb331871b9d96e Mon Sep 17 00:00:00 2001 From: Boris Bobrov Date: Tue, 23 Feb 2016 04:03:27 +0300 Subject: [PATCH] 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. --- mediagoblin/db/mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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""" -- 2.25.1