summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-01-03 15:00:10 -0500
committermorpheus65535 <[email protected]>2022-01-03 15:00:10 -0500
commit5d3d4532df65e82fc5477fb570f472edcb7c1ea5 (patch)
tree6c10757f5b262d1dad52ee321b4ad1b736570dab
parent2556c5e9b066990fbaec94bbcd3e7e3ead94054c (diff)
downloadbazarr-5d3d4532df65e82fc5477fb570f472edcb7c1ea5.tar.gz
bazarr-5d3d4532df65e82fc5477fb570f472edcb7c1ea5.zip
Fixed logging of regex pattern used during upgrade leftover cleanup. #1655
-rw-r--r--bazarr/check_update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bazarr/check_update.py b/bazarr/check_update.py
index 7a2fa0fc6..523d8b388 100644
--- a/bazarr/check_update.py
+++ b/bazarr/check_update.py
@@ -195,8 +195,8 @@ def update_cleaner(zipfile, bazarr_dir, config_dir):
if os.path.abspath(bazarr_dir).lower() in os.path.abspath(config_dir).lower():
dir_to_ignore.append('^' + os.path.relpath(config_dir, bazarr_dir) + os.path.sep)
dir_to_ignore_regex = re.compile('(?:% s)' % '|'.join(dir_to_ignore))
- logging.debug('BAZARR upgrade leftover cleaner will ignore directories matching this regex: '
- '{}'.format(dir_to_ignore_regex))
+ logging.debug(f'BAZARR upgrade leftover cleaner will ignore directories matching this '
+ f'regex: {dir_to_ignore_regex.pattern}')
file_to_ignore = ['nssm.exe', '7za.exe']
logging.debug('BAZARR upgrade leftover cleaner will ignore those files: {}'.format(', '.join(file_to_ignore)))