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.
This commit is contained in:
parent
7dcdc2dcc6
commit
5eaf6c1120
@ -340,7 +340,7 @@ class MediaEntryMixin(GenerateSlugMixin, GeneratePublicIDMixin):
|
|||||||
# we could show even some raw python things. Anyway, this
|
# we could show even some raw python things. Anyway, this
|
||||||
# should be properly resolved. Now we are in a freeze, that's
|
# should be properly resolved. Now we are in a freeze, that's
|
||||||
# why I simply catch ImportError.
|
# why I simply catch ImportError.
|
||||||
return self.fail_error
|
return None
|
||||||
|
|
||||||
def get_license_data(self):
|
def get_license_data(self):
|
||||||
"""Return license dict for requested license"""
|
"""Return license dict for requested license"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user