Commit a743f536273a9061cff6d123c6ce0b3171815a49

Authored by Sergio Oliveira
1 parent a40b7a43

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 74 def get_list_description(listname, lists=None):
75 75 if not lists:
76 76 lists = dict(all_lists(description=True))
  77 + elif not isinstance(lists, dict):
  78 + lists = dict(lists)
77 79  
78 80 return lists.get(listname)
... ...