diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-06-19 10:06:01 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-06-20 09:24:19 +0100 |
commit | bc4717f11575055ad368cfd8caa0e704baf32e74 (patch) | |
tree | 308e8ac8aee62ad5f79556be0f86fbeee72287e5 /alot/db/utils.py | |
parent | 7e6e40ee39854b7ab05eabc1d1b20c13a6c6bfd6 (diff) |
Fix the default failobj of get_params
Formerly None was used as failobj, but None is not iterable and that
is all that get_params does. Use list() instead which is iterable.
Closes #626.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'alot/db/utils.py')
-rw-r--r-- | alot/db/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py index 0c508b79..45ee0db8 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -57,7 +57,7 @@ def add_signature_headers(mail, sigs, error_msg): ) -def get_params(mail, failobj=None, header='content-type', unquote=True): +def get_params(mail, failobj=list(), header='content-type', unquote=True): '''Get Content-Type parameters as dict. RFC 2045 specifies that parameter names are case-insensitive, so |