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.
This commit is contained in:
Joar Wandborg 2012-09-22 14:19:51 +02:00
parent 5ee1ab2abb
commit 4f8508f664

View File

@ -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