Commit 0cc2058a authored by Gabriel Monnerat's avatar Gabriel Monnerat

use a better way to get the exception message. And, remove line to add a blank...

use a better way to get the exception message. And, remove line to add a blank mimetype, it is not needed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@41756 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb9d5437
......@@ -242,7 +242,6 @@ class Manager(object):
zip = False
try:
response_dict = {}
response_dict["mime"] = ""
# XXX - use html format instead of xhtml
if orig_format in ("presentation", "graphics") and extension == "xhtml":
extension = 'html'
......@@ -267,7 +266,7 @@ class Manager(object):
return (200, response_dict, "")
except Exception, e:
logger.error(e)
return (402, response_dict, e.args[0])
return (402, response_dict, str(e))
def getAllowedTargetItemList(self, content_type):
"""Wrapper getAllowedExtensionList but returns a dict.
......
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