I left a line for bug testing in... oops

This commit is contained in:
Xameren 2024-09-23 17:59:31 +02:00 committed by GitHub
parent 80ee215471
commit c9d102f15d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1033,9 +1033,8 @@ def dailyreward():
try: try:
loaded_datetime = json.loads(json_datetime) loaded_datetime = json.loads(json_datetime)
lastrewardtime = datetime.fromisoformat(loaded_datetime["current_time"]) lastrewardtime = datetime.fromisoformat(loaded_datetime["current_time"])
except (json.JSONDecodeError, KeyError, ValueError)as e: except (json.JSONDecodeError, KeyError, ValueError):
lastrewardtime = datetime(year= 2020, month= 1, day= 1, hour= 1, minute= 1, second= 1, microsecond= 1) lastrewardtime = datetime(year= 2020, month= 1, day= 1, hour= 1, minute= 1, second= 1, microsecond= 1)
print("very bad", e)
timediff = currenttime - lastrewardtime timediff = currenttime - lastrewardtime
if timediff.days >= 1: if timediff.days >= 1:
print("Spin a wheel which gives you a random amount of money or XP.\nThe more levels that you have, the bigger the payout\n\nPress enter to continue") print("Spin a wheel which gives you a random amount of money or XP.\nThe more levels that you have, the bigger the payout\n\nPress enter to continue")
@ -1227,4 +1226,4 @@ def pickusername():
username = a username = a
CasinoMenu() CasinoMenu()
pickusername() pickusername()