From acb59f9e83138dbb50134dfd7c332bb37543e0f8 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 24 Aug 2024 12:19:11 -0700 Subject: [PATCH] Fix saving settings --- comictaggerlib/ctsettings/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comictaggerlib/ctsettings/__init__.py b/comictaggerlib/ctsettings/__init__.py index e31d4ff..81152bc 100644 --- a/comictaggerlib/ctsettings/__init__.py +++ b/comictaggerlib/ctsettings/__init__.py @@ -104,7 +104,8 @@ def save_file( filename: A pathlib.Path object to save the json dictionary to """ file_options = settngs.clean_config(config, file=True) - file_options["Quick Tag"]["url"] = str(file_options["Quick Tag"]["url"]) + if "Quick Tag" in file_options and "url" in file_options["Quick Tag"]: + file_options["Quick Tag"]["url"] = str(file_options["Quick Tag"]["url"]) try: if not filename.exists():