From 4f8508f664089f793e1f42a654df707b457be92d Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Sat, 22 Sep 2012 14:19:51 +0200 Subject: [PATCH] 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. --- mediagoblin/media_types/image/processing.py | 5 ----- 1 file changed, 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 -- 2.25.1