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

Do not fail if no acknowledgment is found

parent a4c41fce
......@@ -50,7 +50,11 @@
</item>
<item>
<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
result_list = [result_list[0]]\n
\n
......
490
\ No newline at end of file
491
\ 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