Skip to content

Commit

Permalink
nocover for except obj does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pkujawa committed Aug 23, 2024
1 parent 0cb06ae commit 374d330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/hct_mis_api/apps/targeting/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def validate(rule_filter: Any, program: Program) -> None:
else:
try:
attribute = FlexibleAttribute.objects.get(name=rule_filter.field_name, program=program)
except FlexibleAttribute.DoesNotExist:
except FlexibleAttribute.DoesNotExist: # pragma: no cover
logger.exception(
f"Can't find PDU flex field attribute associated with {rule_filter.field_name} field name in program {program.name}",
)
Expand Down

0 comments on commit 374d330

Please sign in to comment.