From 953bc57309a409435037a116b24e962434f92e3a Mon Sep 17 00:00:00 2001 From: Takuya Wakazono Date: Tue, 17 Dec 2024 21:53:08 +0900 Subject: [PATCH] fix f-string usage for Python 3.11 and earlier Nested double quotes in f-strings are only supported in Python 3.12 and later. --- nwg_shell_config/locker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nwg_shell_config/locker.py b/nwg_shell_config/locker.py index ddf3b29..2b6f902 100644 --- a/nwg_shell_config/locker.py +++ b/nwg_shell_config/locker.py @@ -128,7 +128,7 @@ def load_wallhaven_image(path): image_url = image_data["data"][0]["path"] for key in image_data["data"][0]: - print(f"{key}: {image_data["data"][0][key]}") + print(f"{key}: {image_data['data'][0][key]}") # Download the image image_response = requests.get(image_url)