From 556ad2bdc62ec5c60c7a5bb0f598e93fdf53dceb Mon Sep 17 00:00:00 2001 From: stg-annon <14135675+stg-annon@users.noreply.github.com> Date: Sun, 25 Feb 2024 09:46:47 -0500 Subject: [PATCH] [renamerOnUpdate] Untrack custom config and load it first if present (#264) --- plugins/renamerOnUpdate/.gitignore | 1 + plugins/renamerOnUpdate/renamerOnUpdate.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 plugins/renamerOnUpdate/.gitignore diff --git a/plugins/renamerOnUpdate/.gitignore b/plugins/renamerOnUpdate/.gitignore new file mode 100644 index 0000000..f85c6b1 --- /dev/null +++ b/plugins/renamerOnUpdate/.gitignore @@ -0,0 +1 @@ +config.py \ No newline at end of file diff --git a/plugins/renamerOnUpdate/renamerOnUpdate.py b/plugins/renamerOnUpdate/renamerOnUpdate.py index fbbe8ac..df27ee5 100644 --- a/plugins/renamerOnUpdate/renamerOnUpdate.py +++ b/plugins/renamerOnUpdate/renamerOnUpdate.py @@ -25,12 +25,13 @@ try: except Exception: MODULE_UNIDECODE = False +import log try: - import renamerOnUpdate_config as config -except Exception: import config -import log +except Exception: + log.LogWarning("Could not import ROU config file, did you rename the template file to 'config.py'? Defaulting to template config file",file=sys.stderr) + import renamerOnUpdate_config as config DB_VERSION_FILE_REFACTOR = 32