diff options
author | Joar Wandborg <git@wandborg.com> | 2012-09-22 14:19:51 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2012-09-22 14:19:51 +0200 |
commit | 4f8508f664089f793e1f42a654df707b457be92d (patch) | |
tree | fc3af2546efb987c839b6b37cc3ce34c8d7d250f | |
parent | 5ee1ab2abb9d4ab0945930a6d79750bdd02ba8a3 (diff) | |
download | mediagoblin-4f8508f664089f793e1f42a654df707b457be92d.tar.lz mediagoblin-4f8508f664089f793e1f42a654df707b457be92d.tar.xz mediagoblin-4f8508f664089f793e1f42a654df707b457be92d.zip |
Removed logging entry from sniff_handler
The logging entry caused the submit page to crash if you tried to upload
an SVG with a non-ascii filename.
-rw-r--r-- | mediagoblin/media_types/image/processing.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mediagoblin/media_types/image/processing.py b/mediagoblin/media_types/image/processing.py index 32b1f4f7..bdb2290f 100644 --- a/mediagoblin/media_types/image/processing.py +++ b/mediagoblin/media_types/image/processing.py @@ -63,11 +63,6 @@ def sniff_handler(media_file, **kw): name, ext = os.path.splitext(kw['media'].filename) clean_ext = ext[1:].lower() # Strip the . from ext and make lowercase - _log.debug('name: {0}\next: {1}\nlower_ext: {2}'.format( - name, - ext, - clean_ext)) - if clean_ext in SUPPORTED_FILETYPES: _log.info('Found file extension in supported filetypes') return True |