Now it works also on Mac OS X

This commit is contained in:
Bernardo Damele
2009-04-30 10:46:50 +00:00
parent 722ca8bf2f
commit e8c115500d
5 changed files with 23 additions and 7 deletions

View File

@@ -63,8 +63,8 @@ class Magic:
def __del__(self):
try:
magic_close(self.cookie)
except Exception, e:
print "got this:", e
except Exception, _:
pass
_magic_mime = None