From b8555cd1f1b1c18df254bc2c7f83c64390a01ed4 Mon Sep 17 00:00:00 2001 From: Jake Smith <jws52@cam.ac.uk> Date: Tue, 22 Mar 2022 16:26:45 +0000 Subject: [PATCH] fix: Align CLI email option with email logger --- Processor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Processor.py b/Processor.py index 198d3b7..bd80e6e 100755 --- a/Processor.py +++ b/Processor.py @@ -35,6 +35,7 @@ import sys from flagdir import jobStatus # created by jws52 # submodules of this project +import BufferingSMTPHandler import EnvSuitPipeline as esp import NAMEPreProcessor as npp import ProcessorComponents @@ -275,7 +276,7 @@ def parse_and_check_args(todayString): if not args.live: # remove the log handler that would send emails - logger.handlers = [h for h in logger.handlers if not isinstance(h,logging.handlers.SMTPHandler)] + logger.handlers = [h for h in logger.handlers if not isinstance(h,BufferingSMTPHandler.BufferingSMTPHandler)] if not isinstance(args.config_paths,list): logger.error('Expecting a list of config paths') -- GitLab