Skip to content

Commit

Permalink
A more descriptive exception.. - testing changes a nightmare without …
Browse files Browse the repository at this point in the history
…this (PokemonGoF#1932)
  • Loading branch information
medghaim authored and JZ6 committed Jul 25, 2016
1 parent 53f2f2c commit fbe058a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pogom/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@ def search_loop(args):

# This seems appropriate
except Exception as e:
log.info('Crashed, waiting {:d} seconds before restarting search.'.format(args.scan_delay))
log.info('{0.__class__.__name__}: {0} - waiting {1} sec(s) before restarting'.format(e, args.scan_delay))
time.sleep(args.scan_delay)
search_loop(args)

0 comments on commit fbe058a

Please sign in to comment.