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 ...@@ -73,9 +73,14 @@ ob.log(ob.getRelativeUrl())\n
ob.log(ob.hasFile())\n ob.log(ob.hasFile())\n
ob.log(ob.hasOOfile())\n ob.log(ob.hasOOfile())\n
if ob.hasFile() and not ob.hasOOfile():\n if ob.hasFile() and not ob.hasOOfile():\n
res=ob.convert()\n try:\n
ob.log(res)\n res=ob.convert()\n
ob.setStatusMessage(str(res[1]))\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> </string> </value>
</item> </item>
<item> <item>
...@@ -124,6 +129,8 @@ if ob.hasFile() and not ob.hasOOfile():\n ...@@ -124,6 +129,8 @@ if ob.hasFile() and not ob.hasOOfile():\n
<string>res</string> <string>res</string>
<string>str</string> <string>str</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>Exception</string>
<string>e</string>
</tuple> </tuple>
</value> </value>
</item> </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