ASCII media type support & fix a bug in file submission error handling
* Added ASCII media processing * Added ASCII media display * Added ASCII media type Rebased from Joar Wandborg's ascii art branch (squashed to remove the commits borrowing code of dubious license) Fixed a bug in file submission error handling: - Moved file-extension condition out of loop (what did it do there?) - Updated file submission tests - Changed error handling in file submission, should now report more than absolutely necessary.
This commit is contained in:
committed by
Christopher Allan Webber
parent
992e4f8032
commit
a246ccca69
@@ -128,9 +128,13 @@ def submit_start(request):
|
||||
|
||||
return redirect(request, "mediagoblin.user_pages.user_home",
|
||||
user=request.user.username)
|
||||
except InvalidFileType, exc:
|
||||
except Exception as e:
|
||||
'''
|
||||
This section is intended to catch exceptions raised in
|
||||
mediagobling.media_types
|
||||
'''
|
||||
submit_form.file.errors.append(
|
||||
_(u'Invalid file type.'))
|
||||
e)
|
||||
|
||||
return render_to_response(
|
||||
request,
|
||||
|
||||
Reference in New Issue
Block a user