Skip to content

Commit

Permalink
chore: type handling
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Apr 16, 2024
1 parent f75a9a3 commit 0f59901
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ape/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ def _register_plugins(self):
if self.__registered:
return

plugins = [x.name.replace("-", "_") for x in distributions() if x.name.startswith("ape-")]
plugins = [
getattr(x, "name", "").replace("-", "_")
for x in distributions()
if getattr(x, "name", "").startswith("ape-")
]
locals = [p for p in __modules__ if p != "ape"]
plugin_modules = tuple([*plugins, *locals])

Expand Down

0 comments on commit 0f59901

Please sign in to comment.