Commit 5a65c125ab15cd17d96991b959745d90c16b687e

Authored by Charles Oliveira
1 parent 5c406cf7

Making sure 'lists' is not just a string

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
colab/accounts/utils/mailman.py
... ... @@ -76,6 +76,8 @@ def mailing_lists(**kwargs):
76 76  
77 77 try:
78 78 lists = requests.get(url, timeout=TIMEOUT, params=kwargs)
  79 + if not isinstance(lists, (list, tuple)):
  80 + raise
79 81 except:
80 82 LOGGER.exception('Unable to list mailing lists')
81 83 return []
... ...