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

do not crash when something is None - just ignore and go on

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11763 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c22e2e3
...@@ -125,11 +125,9 @@ for base_category in category_order:\n ...@@ -125,11 +125,9 @@ for base_category in category_order:\n
\n \n
# Return a list of users or a single group\n # Return a list of users or a single group\n
if user_list:\n if user_list:\n
#context.log(user_list)\n
return user_list\n return user_list\n
context.log(code_list)\n code_list=[c for c in code_list if c is not None]\n
r=\'_\'.join(code_list)\n r=\'_\'.join(code_list)\n
#context.log(category_order,r)\n
return r\n return r\n
</string> </value> </string> </value>
</item> </item>
...@@ -209,6 +207,9 @@ return r\n ...@@ -209,6 +207,9 @@ return r\n
<string>user_name</string> <string>user_name</string>
<string>category_code</string> <string>category_code</string>
<string>AttributeError</string> <string>AttributeError</string>
<string>append</string>
<string>$append0</string>
<string>c</string>
<string>r</string> <string>r</string>
</tuple> </tuple>
</value> </value>
......
416 418
\ 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