diff options
author | Boris Bobrov <breton@cynicmansion.ru> | 2016-02-23 04:03:27 +0300 |
---|---|---|
committer | Boris Bobrov <breton@cynicmansion.ru> | 2016-02-23 04:03:27 +0300 |
commit | 5eaf6c1120d9d14b0ea8b5393abb331871b9d96e (patch) | |
tree | b92576dec53fc25d0e901089c9ebb1e0893f1510 /mediagoblin/db/mixin.py | |
parent | 7dcdc2dcc679560cbd85ae704ee9d27b94b6a85a (diff) | |
download | mediagoblin-5eaf6c1120d9d14b0ea8b5393abb331871b9d96e.tar.lz mediagoblin-5eaf6c1120d9d14b0ea8b5393abb331871b9d96e.tar.xz mediagoblin-5eaf6c1120d9d14b0ea8b5393abb331871b9d96e.zip |
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.
Diffstat (limited to 'mediagoblin/db/mixin.py')
-rw-r--r-- | mediagoblin/db/mixin.py | 2 |
1 files changed, 1 insertions, 1 deletions
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""" |