Skip to content

Commit

Permalink
quick bugfix. this needs more work, but works for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
exiva committed Sep 24, 2014
1 parent ae0ef00 commit d5e393f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions orangered.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,16 @@ def sendPushbullet(b, t):
logging.info('Problem sending pushbullet. %s', e)
pass

def run(c):
def run(cookie):
c = cookie
while True:
if c['status'] != '200':
logging.info('Problem logging in to reddit. Trying again.')
time.sleep(poll)
c = loginReddit(user, passwd)
pass
elif c['status'] == '200':
c, r, s = getMe(c)
c, r, s = getMe(cookie)
if c['status'] == '200':
parseMe(r, s)
time.sleep(poll)
Expand Down

0 comments on commit d5e393f

Please sign in to comment.