Skip to content

Commit

Permalink
Update fake_traffic.py
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 authored Aug 17, 2021
1 parent 58672ce commit 136b860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fake_traffic.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def get_url(url):
print(resp.status_code, url)
return resp
except requests.exceptions.ConnectionError:
print("Connection error. Sleep 60 sec.")
sleep(60)
print("Connection error. Sleep 30-60 sec.")
sleep(uniform(30, 60))
except:
return None

Expand Down

0 comments on commit 136b860

Please sign in to comment.