Skip to content

Commit

Permalink
Update to use entry_point.attr as a single string
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini authored Dec 15, 2024
1 parent 857b2dd commit 50a1585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysteps/io/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ def discover_importers():
RuntimeWarning(
f"The importer identifier '{importer_short_name}' is already available in"
"'pysteps.io.interface._importer_methods'.\n"
f"Skipping {entry_point.module}:{'.'.join(entry_point.attrs)}"
f"Skipping {entry_point.module}:{entry_point.attr}"
)

if hasattr(importers, importer_function_name):
RuntimeWarning(
f"The importer function '{importer_function_name}' is already an attribute"
"of 'pysteps.io.importers`.\n"
f"Skipping {entry_point.module}:{'.'.join(entry_point.attrs)}"
f"Skipping {entry_point.module}:{entry_point.attr}"
)
else:
setattr(importers, importer_function_name, _importer)
Expand Down

0 comments on commit 50a1585

Please sign in to comment.