diff options
author | Cédric Bonhomme <kimble.mandel+bitbucket@gmail.com> | 2014-06-08 18:25:06 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel+bitbucket@gmail.com> | 2014-06-08 18:25:06 +0200 |
commit | 0a80a6a62e94b326d9f1dea947ebbc87149a1922 (patch) | |
tree | ba7f055f7910e1b5317ce8b952c43179116942d5 /fetch.py | |
parent | Font size for the sidebar: 100% (diff) | |
parent | supporting feed without date or with ill formated date (diff) | |
download | newspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.tar.gz newspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.tar.bz2 newspipe-0a80a6a62e94b326d9f1dea947ebbc87149a1922.zip |
Merged in jaesivsm/pyaggr3g470r (pull request #1)
misc fixes
Diffstat (limited to 'fetch.py')
-rwxr-xr-x[-rw-r--r--] | 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 |