Skip to content

Commit

Permalink
exception.message is deprecated, but not in Python 2.7 m)
Browse files Browse the repository at this point in the history
  • Loading branch information
posativ committed Apr 6, 2013
1 parent a634a1e commit f38de1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acrylamid/utils.py
Expand Up @@ -19,7 +19,7 @@
try:
import magic
except ImportError as e:
if e.message.find('libmagic') > -1:
if e.args[0].find('libmagic') > -1:
raise
magic = None

Expand Down

0 comments on commit f38de1e

Please sign in to comment.