Commit 05cf91dd authored by Romain Courteaud's avatar Romain Courteaud

Do not fail if no acknowledgment is found

parent a4c41fce
...@@ -50,7 +50,11 @@ ...@@ -50,7 +50,11 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>result_list = context.AcknowledgementTool_getUserUnreadAcknowledgementList()\n <value> <string>try:\n
result_list = context.AcknowledgementTool_getUserUnreadAcknowledgementList()\n
except ValueError:\n
result_list = []\n
\n
if len(result_list):\n if len(result_list):\n
result_list = [result_list[0]]\n result_list = [result_list[0]]\n
\n \n
......
490 491
\ No newline at end of file \ No newline at end of file
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