From 677d6f3e035398e6cdfe8bd172713debab902e46 Mon Sep 17 00:00:00 2001 From: Andreas Sauerwein-Schlosser Date: Mon, 22 Apr 2024 23:59:16 +0200 Subject: [PATCH] warn is deprecated --- download_v2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download_v2.py b/download_v2.py index 8ad7512..755398f 100755 --- a/download_v2.py +++ b/download_v2.py @@ -147,7 +147,7 @@ def compare_access_token(): try: options_access_token_json = jwt_decode(ACCESS_TOKEN) except Exception as e: - logging.warn(f"Could not Parse Access Token from Options, {e}") + logging.warning(f"Could not Parse Access Token from Options, {e}") if not file_access_token_json and not options_access_token_json: logging.error( @@ -169,7 +169,7 @@ def compare_access_token(): # nothing to do, ACCESS_TOKEN already set to options pass else: - logging.warn("Unhandled Case when comparing access tokens") + logging.warning("Unhandled Case when comparing access tokens") def compare_refresh_token():