Skip to content

Commit

Permalink
fixed pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jkerpe committed Jun 28, 2024
1 parent 860f1ba commit cf8a5d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pyMetricCli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ def _import_adapter(adapter_path: str) -> AdapterInterface:
adapter = importlib.util.module_from_spec(module_spec)
sys.modules[adapter_name] = adapter
module_spec.loader.exec_module(adapter)
if not hasattr(adapter, "Adapter"):
LOG.error("The adapter module must have an 'Adapter' class.")
adapter_instance = None
else:
adapter_instance = adapter.Adapter()
adapter_instance = adapter.Adapter()

# Check all required attributes and methods of the adapter class.
# Must be done as Python does not enforce interfaces.
Expand Down

0 comments on commit cf8a5d2

Please sign in to comment.