diff --git a/common/lib/idds/common/config.py b/common/lib/idds/common/config.py index 5cd489e4..60212b7f 100644 --- a/common/lib/idds/common/config.py +++ b/common/lib/idds/common/config.py @@ -227,7 +227,7 @@ def get_config(): if not __HAS_CONFIG: local_cfg = get_local_cfg_file() - if os.path.exists(local_cfg): + if local_cfg and os.path.exists(local_cfg): __CONFIG.read(local_cfg) __HAS_CONFIG = True else: