Commit d921a387a79b3de97c6ff4cbf5765b59be57a4e7
Committed by
Charles Oliveira
1 parent
5332878a
Exists in
master
and in
28 other branches
Replaced way to check dict for variable
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
colab/accounts/utils/mailman.py
... | ... | @@ -80,7 +80,7 @@ def mailing_lists(**kwargs): |
80 | 80 | LOGGER.exception('Unable to list mailing lists') |
81 | 81 | return [] |
82 | 82 | |
83 | - if 'names_only' in kwargs and kwargs['names_only']: | |
83 | + if kwargs.get('names_only'): | |
84 | 84 | names_only = [] |
85 | 85 | for l in lists.json(): |
86 | 86 | names_only.append(l['listname']) | ... | ... |