diff --git a/ssg/controls.py b/ssg/controls.py index a75d33d42db..b989edace49 100644 --- a/ssg/controls.py +++ b/ssg/controls.py @@ -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'." % (