Commit a743f536273a9061cff6d123c6ce0b3171815a49
1 parent
a40b7a43
Exists in
master
and in
39 other branches
Converting list to dict
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/accounts/utils/mailman.py
@@ -74,5 +74,7 @@ def user_lists(user): | @@ -74,5 +74,7 @@ def user_lists(user): | ||
74 | def get_list_description(listname, lists=None): | 74 | def get_list_description(listname, lists=None): |
75 | if not lists: | 75 | if not lists: |
76 | lists = dict(all_lists(description=True)) | 76 | lists = dict(all_lists(description=True)) |
77 | + elif not isinstance(lists, dict): | ||
78 | + lists = dict(lists) | ||
77 | 79 | ||
78 | return lists.get(listname) | 80 | return lists.get(listname) |