From cc32475d10066b209aa162a5a9d1479ee1b8ede6 Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Sun, 7 Feb 2021 21:40:37 -0800 Subject: [PATCH] Fix fromisoformat error --- aiogoogle/auth/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogoogle/auth/utils.py b/aiogoogle/auth/utils.py index aa291ae..5f954d4 100644 --- a/aiogoogle/auth/utils.py +++ b/aiogoogle/auth/utils.py @@ -29,7 +29,7 @@ def _is_expired(expires_at): if sys.version_info[1] <= 6: expires_at = _parse_isoformat(expires_at) else: - expires_at = datetime.fromisoformat(expires_at) + expires_at = datetime.datetime.fromisoformat(expires_at) if datetime.datetime.utcnow() >= expires_at: return True else: