Commit c2c10672 authored by Bartek Górny's avatar Bartek Górny

improved problem message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be34f5b7
...@@ -148,7 +148,7 @@ class OOoDocument(DMSFile, CachingMixin): ...@@ -148,7 +148,7 @@ class OOoDocument(DMSFile, CachingMixin):
try: try:
self._convert() self._convert()
except xmlrpclib.Fault,e: except xmlrpclib.Fault,e:
return self.returnMessage('Problem: %s' % str(e),2) return self.returnMessage('Problem: %s' % (str(e) or 'undefined'),2)
return self.returnMessage('converted') return self.returnMessage('converted')
security.declareProtected(Permissions.AccessContentsInformation,'getTargetFormatList') security.declareProtected(Permissions.AccessContentsInformation,'getTargetFormatList')
......
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