aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/process_media/errors.py
diff options
context:
space:
mode:
authorNathan Yergler <nathan@yergler.net>2011-10-01 15:10:02 -0700
committerNathan Yergler <nathan@yergler.net>2011-10-01 15:10:02 -0700
commit243c3843bd574129caa7663e25d1a843b2d2dd30 (patch)
tree0171de5e911010b76e86c689bb5f5f8ce86845db /mediagoblin/process_media/errors.py
parent573aba86b58c2ab064d0d57ed0bbae6bdf9a2819 (diff)
downloadmediagoblin-243c3843bd574129caa7663e25d1a843b2d2dd30.tar.lz
mediagoblin-243c3843bd574129caa7663e25d1a843b2d2dd30.tar.xz
mediagoblin-243c3843bd574129caa7663e25d1a843b2d2dd30.zip
Whitespace and formatting cleanup.
* Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
Diffstat (limited to 'mediagoblin/process_media/errors.py')
-rw-r--r--mediagoblin/process_media/errors.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/mediagoblin/process_media/errors.py b/mediagoblin/process_media/errors.py
index 156f0a01..cb236154 100644
--- a/mediagoblin/process_media/errors.py
+++ b/mediagoblin/process_media/errors.py
@@ -16,17 +16,18 @@
from mediagoblin.util import lazy_pass_to_ugettext as _
+
class BaseProcessingFail(Exception):
"""
Base exception that all other processing failure messages should
subclass from.
-
+
You shouldn't call this itself; instead you should subclass it
and provid the exception_path and general_message applicable to
this error.
"""
general_message = u''
-
+
@property
def exception_path(self):
return u"%s:%s" % (
@@ -34,8 +35,8 @@ class BaseProcessingFail(Exception):
def __init__(self, **metadata):
self.metadata = metadata or {}
-
-
+
+
class BadMediaFail(BaseProcessingFail):
"""
Error that should be raised when an inappropriate file was given