From 6e5f0c41b662587246701a979c0aee39ef857874 Mon Sep 17 00:00:00 2001 From: security-companion Date: Thu, 28 Mar 2024 00:01:26 +0100 Subject: [PATCH] move config-code --- src/hibp_harvester.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hibp_harvester.py b/src/hibp_harvester.py index 796b847..8bb6215 100644 --- a/src/hibp_harvester.py +++ b/src/hibp_harvester.py @@ -45,9 +45,8 @@ def __iter__(self): def read_config(api_key, wait_time): config_file_name = 'hibp-harvester.cfg' config_template_file_name = 'hibp-harvester_template.cfg' + config = configparser.ConfigParser() if os.path.exists(config_file_name): - - config = configparser.ConfigParser() config.read('hibp-harvester.cfg') else: print(f"Config file {config_file_name} does not exist, please create it by using \