Skip to content

Commit

Permalink
refactor: Remove unnecessary try/else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Aug 31, 2024
1 parent 0cedf9d commit a99a99c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/mkdocs_autorefs/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ def _get_item_url(
self._url_map[identifier] = [url]
return url
raise
else:
if len(urls) > 1:
log.warning(
"Multiple URLs found for '%s': %s. "
"Make sure to use unique headings, identifiers, or Markdown anchors (see our docs).",
identifier,
urls,
)
return urls[0]

if len(urls) > 1:
log.warning(
"Multiple URLs found for '%s': %s. "
"Make sure to use unique headings, identifiers, or Markdown anchors (see our docs).",
identifier,
urls,
)
return urls[0]

def get_item_url(
self,
Expand Down

0 comments on commit a99a99c

Please sign in to comment.