Commit 5d15fa20 authored by Nicolas Delaby's avatar Nicolas Delaby

Delete obsolete comment.

Display Tracebak to ease debugging


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43968 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15f9acda
......@@ -46,7 +46,6 @@ def getHandlerObject(source_format, destination_format,
"""Select handler according to source_format and destination_format"""
source_mimetype = mimetypes.types_map.get('.%s' % source_format, "*")
destination_mimetype = mimetypes.types_map.get('.%s' % destination_format, "*")
# XXX - Find one way to don't need use iteration to find the handler
for pattern in mimetype_registry:
registry_list = pattern.split()
if fnmatch(source_mimetype, registry_list[0]) and \
......@@ -192,6 +191,7 @@ class Manager(object):
del response_dict['meta']['Data']
return (200, response_dict, "")
except Exception, e:
import traceback; traceback.print_exc()
logger.error(e)
return (402, {}, e.args[0])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment