summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2015-11-06 10:42:06 -0800
committerAdam Hupp <adam@hupp.org>2015-11-06 10:42:06 -0800
commita2e5b48ae7df54aa805e0bb65315b703838a728e (patch)
treeb4887f02e4b5ae3cfe8b462c799d5addc649e331
parentbfbc82040a6e576f4861baf02fa01df12a555e05 (diff)
parent0c4b16838730f748f8640857ce8ca58fe391033c (diff)
downloadpython-magic-a2e5b48ae7df54aa805e0bb65315b703838a728e.tar.gz
Merge pull request #91 from Rafiot/fix_exception
Fix MagicException
-rw-r--r--magic.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/magic.py b/magic.py
index f281cb4..710023b 100644
--- a/magic.py
+++ b/magic.py
@@ -26,7 +26,12 @@ import threading
from ctypes import c_char_p, c_int, c_size_t, c_void_p
-class MagicException(Exception): pass
+
+class MagicException(Exception):
+ def __init__(self, message):
+ super(MagicException, self).__init__(message)
+ self.message = message
+
class Magic:
"""