Skip to content
Snippets Groups Projects
Commit cc606023 authored by jurgenhaas's avatar jurgenhaas
Browse files

Allow empty recipients list

parent a19f8203
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ class ActionModule(object):
for key in data:
item = data.get(key)
if type(item) is list or type(item) is dict:
if len(item) > 0:
if len(item) > 0 or key == 'recipients':
item = encoder.encode(item)
if type(item) is int or type(item) is unicode or type(item) is bool:
item = str(item)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment