Skip to content

Commit

Permalink
Be more strict on the captured exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yuumasato committed Mar 6, 2024
1 parent 34a48d3 commit 8fcad8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssg/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def add_references(self, reference_type, rules):
continue
try:
rule.add_extra_reference(reference_type, self.id)
except Exception as exc:
except ValueError as exc:
msg = (
"Please remove any duplicate listing of rule '%s' in "
"control '%s'." % (
Expand Down

0 comments on commit 8fcad8b

Please sign in to comment.