Switch BaseProcessingFail.exception_path's separator from period to colon
Also removing .generator_error_message() which doesn't make sense really... we need to get the message when we don't have an instance of the exception, and this method requires an instance.
This commit is contained in:
parent
ff520ff53b
commit
e3e9b8fcc9
@ -29,22 +29,12 @@ class BaseProcessingFail(Exception):
|
||||
|
||||
@property
|
||||
def exception_path(self):
|
||||
return u"%s.%s" % (
|
||||
return u"%s:%s" % (
|
||||
self.__class__.__module__, self.__class__.__name__)
|
||||
|
||||
def __init__(self, **metadata):
|
||||
self.metadata = metadata or {}
|
||||
|
||||
def generate_error_message(self):
|
||||
"""
|
||||
Generate an error to display to users in the panel.
|
||||
|
||||
Uses this class's general_message, possibly interpolated
|
||||
with any metadata in self.metadata['error_message_vars'],
|
||||
if appropriate.
|
||||
"""
|
||||
return self.general_message % self.metadata.get('error_message_vars', {})
|
||||
|
||||
|
||||
class BadMediaFail(BaseProcessingFail):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user