diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2016-02-21 16:03:47 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2016-02-21 16:03:47 +0000 |
commit | 7d487d604178e311dbc0994d3c81b95683b2419e (patch) | |
tree | 5885a1730c9b2cb255efeae19e563cb0e1ff7201 /alot/helper.py | |
parent | 9fb17f2f6a4b15da66d478cb7c030d3f2daa63c8 (diff) |
fix #841
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py index 040467a6..23e2f1f9 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -397,7 +397,8 @@ def guess_mimetype(blob): m.load() magictype = m.buffer(blob) elif hasattr(magic, 'from_buffer'): - magictype = magic.from_buffer(blob, mime=True) + # cf. issue #841 + magictype = magic.from_buffer(blob, mime=True) or magictype else: raise Exception('Unknown magic API') |