Skip to content

Commit

Permalink
move config-code
Browse files Browse the repository at this point in the history
  • Loading branch information
security-companion committed Mar 27, 2024
1 parent f32ee38 commit 6e5f0c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hibp_harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 6e5f0c4

Please sign in to comment.