Skip to content

Commit

Permalink
move .posts init up --autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
quartata committed Apr 24, 2018
1 parent 0735f6c commit b566d0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deletionwatcher.py
Expand Up @@ -23,15 +23,14 @@
class DeletionWatcher:
def __init__(self):
DeletionWatcher.update_site_id_list()
self.posts = {}

try:
self.socket = websocket.create_connection("wss://qa.sockets.stackexchange.com/")
except:
log('error', 'DeletionWatcher failed to create a websocket connection')
return

self.posts = {}

if os.path.exists("deletionIDs.p"):
with open("deletionIDs.p", "rb") as fh:
for post in DeletionWatcher._check_batch(pickle.load(fh)):
Expand Down

0 comments on commit b566d0f

Please sign in to comment.