{"action":"opened","issue":{"url":"https://api.github.com/repos/rfk/pyenchant/issues/55","labels_url":"https://api.github.com/repos/rfk/pyenchant/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/rfk/pyenchant/issues/55/comments","events_url":"https://api.github.com/repos/rfk/pyenchant/issues/55/events","html_url":"https://github.com/rfk/pyenchant/issues/55","id":72820314,"number":55,"title":"TypeError at shutdown","user":{"login":"brbsix","id":6672131,"avatar_url":"https://avatars.githubusercontent.com/u/6672131?v=3","gravatar_id":"","url":"https://api.github.com/users/brbsix","html_url":"https://github.com/brbsix","followers_url":"https://api.github.com/users/brbsix/followers","following_url":"https://api.github.com/users/brbsix/following{/other_user}","gists_url":"https://api.github.com/users/brbsix/gists{/gist_id}","starred_url":"https://api.github.com/users/brbsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brbsix/subscriptions","organizations_url":"https://api.github.com/users/brbsix/orgs","repos_url":"https://api.github.com/users/brbsix/repos","events_url":"https://api.github.com/users/brbsix/events{/privacy}","received_events_url":"https://api.github.com/users/brbsix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T15:22:27Z","updated_at":"2015-05-03T15:22:27Z","closed_at":null,"body":"I use pylint, which uses pyenchant. After pylint does its thing, pyenchant spits out an exception. This doesn't seem to happen linting every file, but it happens frequently.\r\n\r\nHere is the exception:\r\n    Exception ignored in: <bound method Broker.__del__ of <enchant.Broker object at 0x7f811afaad68>>\r\n    Traceback (most recent call last):\r\n      File \"/home/USER/.local/lib/python3.4/site-packages/enchant/__init__.py\", line 244, in __del__\r\n      File \"/home/USER/.local/lib/python3.4/site-packages/enchant/__init__.py\", line 273, in _free\r\n    TypeError: 'NoneType' object is not callable\r\n\r\nAs evident by the exception, the error seems to be occurring in the *Broker object destructor* `__del__()`. It looks like maybe the Broker class is setting self._free to None and then trying to execute it like self._free(), but I'm not certain. The *Dict object destructor* may also be vulnerable to the same sort of thing, as it runs self._free() with `except AttributeError` but does not catch `TypeError`. Anyways, I'm not familiar with pyenchant and whether that is likely to occur in the Dict class, so I won't add it.\r\n\r\nI will submit a pull request to fix the error that I've been getting. If you think the same thing could occur with the in the Dict class then you may want to fix `__del__()` there too."}}