diff options
| author | Adam Hupp <adam@hupp.org> | 2015-11-06 10:42:06 -0800 |
|---|---|---|
| committer | Adam Hupp <adam@hupp.org> | 2015-11-06 10:42:06 -0800 |
| commit | a2e5b48ae7df54aa805e0bb65315b703838a728e (patch) | |
| tree | b4887f02e4b5ae3cfe8b462c799d5addc649e331 | |
| parent | bfbc82040a6e576f4861baf02fa01df12a555e05 (diff) | |
| parent | 0c4b16838730f748f8640857ce8ca58fe391033c (diff) | |
| download | python-magic-a2e5b48ae7df54aa805e0bb65315b703838a728e.tar.gz | |
Merge pull request #91 from Rafiot/fix_exception
Fix MagicException
| -rw-r--r-- | magic.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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: """ |
