更新 __init__.py

This commit is contained in:
jxxghp 2023-09-03 11:14:36 +08:00 committed by GitHub
parent 4f26f0607a
commit 1338a061c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,9 @@ class DirMonitor(_PluginBase):
# 整理屏蔽词不处理
transfer_exclude_words = self.systemconfig.get(SystemConfigKey.TransferExcludeWords)
if transfer_exclude_words:
for keyword in transfer_exclude_words.split("\n"):
for keyword in transfer_exclude_words:
if not keyword:
continue
if keyword and re.findall(keyword, event_path):
logger.info(f"{event_path} 命中整理屏蔽词 {keyword},不处理")
return