diff options
-rwxr-xr-x | fetch.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6,8 +6,11 @@ # You can use this script with cron, for example: # */30 * * * * cd ~/.pyaggr3g470r/ ; python fetch.py # to fetch articles every 30 minutes. - import sys +if 'threading' in sys.modules: + raise Exception('threading module loaded before patching!') +import gevent.monkey +gevent.monkey.patch_thread() from pyaggr3g470r import crawler from pyaggr3g470r.models import User |