Skip to content

Commit

Permalink
Drop assert in APIClient.parse_links()
Browse files Browse the repository at this point in the history
It is removed from optimized code anyway and only ever triggers if the
API behaves differently from what's currently documented.
  • Loading branch information
s-hamann committed Jun 24, 2024
1 parent d03073d commit a22f040
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion desec.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,6 @@ def parse_links(self, links: str) -> dict[str, str]:
raise APIExpectationError("Unexpected format in Link header")
label = m.group(1)
_url = _url[1:-1]
assert label not in mapping
mapping[label] = _url
return mapping

Expand Down

0 comments on commit a22f040

Please sign in to comment.