MCPcopy Create free account
hub / github.com/PyCQA/flake8 / __init__

Method __init__

src/flake8/exceptions.py:22–26  ·  view source on GitHub ↗

Initialize our FailedToLoadPlugin exception.

(self, plugin_name: str, exception: Exception)

Source from the content-addressed store, hash-verified

20 FORMAT = 'Flake8 failed to load plugin "%(name)s" due to %(exc)s.'
21
22 def __init__(self, plugin_name: str, exception: Exception) -> None:
23 """Initialize our FailedToLoadPlugin exception."""
24 self.plugin_name = plugin_name
25 self.original_exception = exception
26 super().__init__(plugin_name, exception)
27
28 def __str__(self) -> str:
29 """Format our exception message."""

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected