Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
Summary: Fixed a few things & consolidated unit tests

Reviewed By: csahana95

Differential Revision: D54020091

fbshipit-source-id: c86b37ac80e1f121980816b521d53fde998fbec4
  • Loading branch information
YueLi28 authored and facebook-github-bot committed Feb 22, 2024
1 parent cc0ba0d commit e1f3762
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ def _load_patterns(filename: Path) -> list[InsecurePattern]:
LOG.fatal(f"No such file or directory: {filename}")
except yaml.YAMLError as exc:
LOG.fatal(f"Error in YAML syntax: {exc}")
except Exception as exc:
LOG.fatal(f"Unexpected error while loading patterns: {exc}")
return result

0 comments on commit e1f3762

Please sign in to comment.