Skip to content

Commit

Permalink
Add username of possibly banned accounts (PokemonGoF#941)
Browse files Browse the repository at this point in the history
Just a small fix in order to add banned usernames.
  • Loading branch information
mfaalk authored and invisiblek committed Aug 22, 2016
1 parent 922ac3b commit dc2e5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pogom/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def search_worker_thread(args, account, search_items_queue, pause_bit, encryptio
end_sleep = now() + (3600 * 2)
long_sleep_started = time.strftime('%H:%M:%S')
while now() < end_sleep:
status['message'] = 'Worker failed more than {} scans; possibly banned account. Sleeping for 2 hour sleep as of {}'.format(args.max_failures, long_sleep_started)
status['message'] = 'Worker {} failed more than {} scans; possibly banned account. Sleeping for 2 hour sleep as of {}'.format(account['username'], args.max_failures, long_sleep_started)
log.error(status['message'])
time.sleep(300)
break # exit this loop to have the API recreated
Expand Down Expand Up @@ -508,7 +508,7 @@ def search_worker_thread(args, account, search_items_queue, pause_bit, encryptio
log.debug(status['message'])
except KeyError:
status['fail'] += 1
status['message'] = 'Map parse failed at {:6f},{:6f}, abandoning location'.format(step_location[0], step_location[1])
status['message'] = 'Map parse failed at {:6f},{:6f}, abandoning location. {} may be banned.'.format(step_location[0], step_location[1], account['username'])
log.exception(status['message'])

# Always delay the desired amount after "scan" completion
Expand Down

0 comments on commit dc2e5ea

Please sign in to comment.