Skip to content

Commit

Permalink
Fix ValueError crash
Browse files Browse the repository at this point in the history
ValueError, "non-integer arg 1 for randrange()"
  • Loading branch information
Gobberwart committed Nov 9, 2016
1 parent e4b73f8 commit 58c2361
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ def get_commit_hash():
finished = False

while not finished:
wait_time = randint((config.reconnecting_timeout * 0.8 * 60), (config.reconnecting_timeout * 1.2 * 60))
min_wait_time = int(config.reconnecting_timeout * 0.8 * 60)
max_wait_time = int(config.reconnecting_timeout * 1.2 * 60)
wait_time = randint(min_wait_time, max_wait_time)
try:
bot = initialize(config)
bot = start_bot(bot, config)
Expand Down

0 comments on commit 58c2361

Please sign in to comment.