From 88476abd9a3f78a4361a3f04383e16de3b24ea01 Mon Sep 17 00:00:00 2001 From: JoeZiminski Date: Sun, 9 Jun 2024 15:34:16 +0100 Subject: [PATCH] Merge conditional statements in ds_logger. --- datashuttle/utils/ds_logger.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/datashuttle/utils/ds_logger.py b/datashuttle/utils/ds_logger.py index 6631cfd7..ca1c6bf9 100644 --- a/datashuttle/utils/ds_logger.py +++ b/datashuttle/utils/ds_logger.py @@ -27,9 +27,8 @@ def get_logger(): def logging_is_active(): logger_exists = get_logger_name() in logging.root.manager.loggerDict - if logger_exists: - if get_logger().handlers != []: - return True + if logger_exists and get_logger().handlers != []: + return True return False