Commit a7c52b5e authored by okhin's avatar okhin
Browse files

Fixing the args parse part of the code

parent 85ec8a70
Pipeline #780 passed with stage
in 2 seconds
......@@ -27,9 +27,10 @@ config = configparser.ConfigParser()
arg_parser.add_argument('-c', '--config', help="Config file")
args = arg_parser.parse_args()
logging.debug("Let's use {} as a config file".config(arg_parser.config,))
logging.debug("Let's use {} as a config file".format(args.config,))
except AttributeError:
except AttributeError as e:
if os.path.isfile('config.ini'):
logging.debug("Let's use config.ini as a config file")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment