fixed string when no last_check file is found
This commit is contained in:
parent
7e37736438
commit
40cacc2020
2
main.py
2
main.py
@ -16,7 +16,7 @@ old_ts = ''
|
|||||||
try:
|
try:
|
||||||
old_ts = dt.strptime(open('last_check','r').read().split(".")[0],'%Y-%m-%d %H:%M:%S')
|
old_ts = dt.strptime(open('last_check','r').read().split(".")[0],'%Y-%m-%d %H:%M:%S')
|
||||||
except:
|
except:
|
||||||
old_ts = dt.strptime('20230101000000','%Y-%m-%d %H:%M:%S')
|
old_ts = dt.strptime('2023-01-01 00:00:00','%Y-%m-%d %H:%M:%S')
|
||||||
|
|
||||||
# load in the relevant .env variables
|
# load in the relevant .env variables
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user