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