Skip to content

Commit

Permalink
Merge pull request #5800 from Gobberwart/gobb_timeoutfix
Browse files Browse the repository at this point in the history
Fix ValueError crash
  • Loading branch information
Gobberwart authored Nov 10, 2016
2 parents e4b73f8 + 58c2361 commit ac7f30e
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 ac7f30e

Please sign in to comment.