Open ViceRabbit opened 2 years ago
might be a "your internet lol" problem but will push an update with a new timeout set.
Issue still persists, I doubt this is an "your internet lol" thing, but might able to make another exception with requests.exceptions.ConnectionError
!
Trial and error at this point, trying this -
while True:
worked = False
try:
cf_api = session.get('https://api.curseforge.com/v1/mods/' + project_id, headers=headers)
worked = True
except requests.exceptions.ConnectionError:
print("Wowzers, your internet is so trash! At attempt to retrieve " + name + ", sleeping for 5 seconds and " \
"retrying. . ")
sleep(5)
if worked == True:
break ```
Seemingly works? Will have to run another test but will close this as completed within next update release.
Reported by yuuki -