sensiblecodeio / scraperwiki-python

ScraperWiki Python library for scraping and saving data
https://scraperwiki.com
BSD 2-Clause "Simplified" License
159 stars 69 forks source link

Added conditional check on 'atexit' event function: the Python interp… #103

Closed nick13jaremek closed 7 years ago

nick13jaremek commented 7 years ago

…reter may remove the '_State' class before running the 'atexit' event actions, which yields a stacktrace with a 'NoneType has no _transation attribute' error. Checking on the existence of the '_State' class, and then on its attributes ensures the NoneType error does not appear.

nick13jaremek commented 7 years ago

Fixes issue #102