Skip to content

File encoding error #29

@initd1

Description

@initd1

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. On a Windows environment, run python main.py
  2. The following error appears:
Traceback (most recent call last):
  File "H:\Code\Cyber-Breach-Detector\main.py", line 14, in <module>
    from Common import utils
  File "H:\Code\Cyber-Breach-Detector\Common\utils.py", line 18, in <module>
    configure_logging()
  File "H:\Code\Cyber-Breach-Detector\Config\config.py", line 52, in configure_logging
    logging_config = get_logging_config()
  File "H:\Code\Cyber-Breach-Detector\Config\config.py", line 44, in get_logging_config
    config = get_config('Config/logger.ini')
  File "H:\Code\Cyber-Breach-Detector\Config\config.py", line 19, in get_config
    config.read(config_file_path)
  File "C:\Users\kash\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 697, in read
    self._read(fp, filename)
  File "C:\Users\kash\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 1020, in _read
    for lineno, line in enumerate(fp, start=1):
  File "C:\Users\kash\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 152: character maps to <undefined>

Expected behavior
The script must run without errors and output the results of detected breaches for IP, Email or Username.

Desktop (please complete the following information):

  • OS: Windows 10
  • IDE: Visual Studio Code
  • Python Version: 3.9.13

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions