Skip to content

Commit

Permalink
Fixing debug messages about failed loads (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Jan 14, 2025
1 parent 792137a commit f607e61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flake8_requirements/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def get_pyproject_toml(cls):
with open(pyproject_config_path, mode="rb") as f:
return tomllib.load(f)
except (IOError, tomllib.TOMLDecodeError) as e:
LOG.debug("Couldn't load project setup: %s", e)
LOG.debug("Couldn't load pyproject: %s", e)
return {}

@classmethod
Expand Down Expand Up @@ -675,7 +675,7 @@ def get_setup_py(cls):
with open(os.path.join(cls.root_dir, "setup.py")) as f:
return SetupVisitor(ast.parse(f.read()), cls.root_dir)
except IOError as e:
LOG.debug("Couldn't load project setup: %s", e)
LOG.debug("Couldn't load setup: %s", e)
return SetupVisitor(ast.parse(""), cls.root_dir)

@classmethod
Expand Down

0 comments on commit f607e61

Please sign in to comment.