Skip to content

Commit 8013be4

Browse files
committed
chore: Clean up unused condition
1 parent e135869 commit 8013be4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/mkdocstrings/extension.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ def _process_block(
210210
data: CollectorItem = handler.collect(identifier, options)
211211
except CollectionError as exception:
212212
log.error(str(exception)) # noqa: TRY400
213-
if PluginError is SystemExit: # TODO: when MkDocs 1.2 is sufficiently common, this can be dropped.
214-
log.error(f"Error reading page '{self._autorefs.current_page}':") # noqa: TRY400
215213
raise PluginError(f"Could not collect '{identifier}'") from exception
216214

217215
if handler_name not in self._updated_envs: # We haven't seen this handler before on this document.

0 commit comments

Comments
 (0)