Commit f5a5f685a4320d666ff8b3cae4376ce61cda602e
1 parent
43e57b43
Exists in
master
and in
39 other branches
Renaming stuff around
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
src/accounts/utils/mailman.py
... | ... | @@ -44,15 +44,14 @@ def update_subscription(address, lists): |
44 | 44 | subscribe(maillist, address) |
45 | 45 | |
46 | 46 | |
47 | -def address_lists(address, description=None): | |
47 | +def address_lists(address, description=''): | |
48 | 48 | url = get_url() |
49 | 49 | |
50 | - kwargs = {'address': address} | |
51 | - if description: | |
52 | - kwargs.update(description=description) | |
50 | + params = {'address': address, | |
51 | + 'description': description} | |
53 | 52 | |
54 | 53 | try: |
55 | - lists = requests.get(url, timeout=TIMEOUT, params=kwargs) | |
54 | + lists = requests.get(url, timeout=TIMEOUT, params=params) | |
56 | 55 | except requests.exceptions.RequestException: |
57 | 56 | return [] |
58 | 57 | ... | ... |