diff options
author | pazz <patricktotzke@gmail.com> | 2011-07-06 15:32:53 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-07-06 15:32:53 +0100 |
commit | 38e9224b0aeb9c7cf1d9376f23607f34de6c68be (patch) | |
tree | 5fcc269367ac974cfe1d0dc895f0c6756fcf5a34 /alot/settings.py | |
parent | 0c554693c86dee995292ac2c256d5fc675f24074 (diff) |
encodingfoo and mailcap for all contenttypes
Diffstat (limited to 'alot/settings.py')
-rw-r--r-- | alot/settings.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/alot/settings.py b/alot/settings.py index 69cdebe2..ac4a8e8f 100644 --- a/alot/settings.py +++ b/alot/settings.py @@ -255,7 +255,11 @@ def get_mime_handler(mime_type, key, interactive=True): mc_tuple = mailcap.findmatch(mailcaps, mime_type, key='copiousoutput') - return mc_tuple[1][key] + if mc_tuple: + if mc_tuple[1]: + return mc_tuple[1][key] + else: + return None def get_accounts(): |