aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/media_types
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2011-12-31 22:57:08 +0100
committerJoar Wandborg <git@wandborg.com>2011-12-31 22:57:08 +0100
commit4601c30c2e80734cf3a18472c2e29a7f920b9604 (patch)
treec4f3c63f8eb306a435c6e15cb21a6168ecfdf1b8 /mediagoblin/media_types
parenteab23e38d0d4b3a95d6cbb9527715e82efaccdd6 (diff)
downloadmediagoblin-4601c30c2e80734cf3a18472c2e29a7f920b9604.tar.lz
mediagoblin-4601c30c2e80734cf3a18472c2e29a7f920b9604.tar.xz
mediagoblin-4601c30c2e80734cf3a18472c2e29a7f920b9604.zip
Fixed submission error handling and broken tests
- Fixed broken test_auth test - Fixed error handling on submission, it now raises the exception if it is not explicitly relevant to file submission.
Diffstat (limited to 'mediagoblin/media_types')
-rw-r--r--mediagoblin/media_types/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/media_types/__init__.py b/mediagoblin/media_types/__init__.py
index 7b9bf0d7..e7eb1dde 100644
--- a/mediagoblin/media_types/__init__.py
+++ b/mediagoblin/media_types/__init__.py
@@ -73,7 +73,7 @@ def get_media_type_and_manager(filename):
# Get the file extension
ext = os.path.splitext(filename)[1].lower()
else:
- raise Exception(
+ raise InvalidFileType(
_(u'Could not extract any file extension from "{filename}"').format(
filename=filename))