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

set status message if there was an exception

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10399 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0236b002
......@@ -73,9 +73,14 @@ ob.log(ob.getRelativeUrl())\n
ob.log(ob.hasFile())\n
ob.log(ob.hasOOfile())\n
if ob.hasFile() and not ob.hasOOfile():\n
res=ob.convert()\n
ob.log(res)\n
ob.setStatusMessage(str(res[1]))\n
try:\n
res=ob.convert()\n
ob.log(res)\n
ob.setStatusMessage(str(res[1]))\n
except Exception,e:\n
ob.log(e)\n
ob.setStatusMessage(str(e))\n
#raise Exception(str(e)) # do we want the activity to keep trying?\n
</string> </value>
</item>
<item>
......@@ -124,6 +129,8 @@ if ob.hasFile() and not ob.hasOOfile():\n
<string>res</string>
<string>str</string>
<string>_getitem_</string>
<string>Exception</string>
<string>e</string>
</tuple>
</value>
</item>
......
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