SIGN IN SIGN UP

Fix bug in Magic when destructor called too early

Potentially `magic_open` may fail, and when python attempts to gc the Magic instance it fails with:
```
Exception ignored in: <function Magic.__del__ at 0x7f595ba06430>
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/magic.py", line 129, in __del__
    if self.cookie and magic_close:
AttributeError: 'Magic' object has no attribute 'cookie'
```
O
Ofer Koren committed
16972c2c6fda3573860f5f8b0f2c03b757e71d3c
Parent: 1a9f90a
Committed by GitHub <noreply@github.com> on 8/13/2020, 9:34:52 PM