Skip to content

Commit

Permalink
Fix object comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Jun 28, 2024
1 parent b920a65 commit 5c4a955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_http_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def checkTimestamp(self, key, alias, r):

now = datetime.now(timezone.utc)

if timestamp.tzinfo == None:
if timestamp.tzinfo is None:
timestamp = timestamp.replace(tzinfo=timezone.utc)

age = now - timestamp
Expand Down

0 comments on commit 5c4a955

Please sign in to comment.