Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def getVTAPIKey(self):

config = configparser.ConfigParser()

if config.read('Config/logger.ini'):
if config.read('Config/config.ini', encoding='utf-8'):
pass
else:
exit_message("Config file not found")
Expand All @@ -101,7 +101,7 @@ def getVTAPIKey(self):
def getHIBPAPIKey(self):

config = configparser.ConfigParser()
if config.read('Config/logger.ini'):
if config.read('Config/config.ini', encoding='utf-8'):
# print("Reading config file...")
pass
else:
Expand Down
2 changes: 1 addition & 1 deletion Config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_config(config_file_path):
config = configparser.ConfigParser()

# read from file
config.read(config_file_path)
config.read(config_file_path, encoding="utf-8")
config.__dict__

# read from environment variables
Expand Down
2 changes: 1 addition & 1 deletion Email/email_reputation_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def checkEmailBreach(self, email):
except Exception as e:
utils.error_message(e.text)
if response.status_code == 404:
logger.debug("{}".format(colored("No breaches found for this email","green")))
logging.debug("{}".format(colored("No breaches found for this email","green")))
exit()
data = json.loads(response.text)
# Validating the response during execution instead of wasting a call for validation
Expand Down
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import argparse
import json
import logging
import logging
import logger
import logging.config
import sys
import time
Expand Down