Skip to content
Snippets Groups Projects
Commit 2bf657de authored by Georg Sauthoff's avatar Georg Sauthoff
Browse files

fix utcnow deprecation warning

deprecated since at least python 3.12
parent 7779fa57
No related branches found
Tags nightly/444e3604
No related merge requests found
......@@ -32,7 +32,7 @@ class Cert_Error(Exception):
# In[ ]:
def check_not_expired(lines, now = datetime.datetime.utcnow()):
def check_not_expired(lines, now = datetime.datetime.now(datetime.UTC)):
exp = re.compile("expires `([^']+) UTC'")
thresh = now + datetime.timedelta(days=20)
for l in lines:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment