Skip to content

Commit

Permalink
TEMPORARY: Add "Destroy Queue Pickles" to ws.py init.
Browse files Browse the repository at this point in the history
  • Loading branch information
teward committed Mar 18, 2017
1 parent 706420d commit 10425ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ws.py
Expand Up @@ -32,6 +32,14 @@
import requests
from tld.utils import update_tld_names, TldIOError

# TEMPORARY: Kill queue pickles first.
# noinspection PyBroadException
try:
os.remove(os.getcwd() + '/bodyfetcherQueue.p')
os.remove(os.getcwd() + '/bodyfetcherQueueTimings.p')
except:
pass

try:
update_tld_names()
except TldIOError as ioerr:
Expand Down

0 comments on commit 10425ad

Please sign in to comment.