Only try to load additional config, if args.config_file != "".
Summary:
Fixes
Pull Request resolved:
@@ -104,7 +104,7 @@ def default_setup(cfg, args):
logger.info("Environment info:\n" + collect_env_info())
logger.info("Command line arguments: " + str(args))
- if hasattr(args, "config_file"):
+ if hasattr(args, "config_file") and args.config_file != "":
logger.info(
"Contents of args.config_file={}:\n{}".format(
args.config_file, PathManager.open(args.config_file, "r").read()
