Skip to content

Commit

Permalink
Add no cover for an unreachable line in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 28, 2024
1 parent edfd76b commit e89dc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_link/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_link(link_field_value: dict, site_id: int | None = None) -> str | None:
obj = get_rel_obj(link_field_value["internal_link"])
elif "file_link" in link_field_value:
obj = get_rel_obj("filer.file:" + str(link_field_value["file_link"]))
else:
else: # pragma: no cover
return None

if hasattr(obj, "get_absolute_url"):
Expand Down

0 comments on commit e89dc2e

Please sign in to comment.