summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJochen Sprickerhof <git@jochen.sprickerhof.de>2021-05-16 10:37:25 +0200
committerJochen Sprickerhof <git@jochen.sprickerhof.de>2021-05-16 10:37:25 +0200
commit12d0ea062d92a15baee69c4be0e4ae00fcdee416 (patch)
tree4d40c6b1e509bc8cf29e179ce8473ee74589f580 /setup.py
parent0ab68b2d4f6ad0efce45e56df8e94778fe7f758c (diff)
downloadpython-magic-12d0ea062d92a15baee69c4be0e4ae00fcdee416.tar.gz
Check for cookie attribute before trying to delete it
__del__ is called regardless of whether __init__ passed, so the cookie attribute may not exits. This can be seen with: python3 -c "import magic; magic.Magic(foo=None)" Also discussed in https://github.com/ahupp/python-magic/pull/222#issuecomment-675354824
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions