Skip to content

Commit

Permalink
fix: if name of distribution is None
Browse files Browse the repository at this point in the history
  • Loading branch information
senickel committed Nov 4, 2024
1 parent c11e447 commit 2e959b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlt/common/configuration/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def load_setuptools_entrypoints(m: pluggy.PluginManager) -> None:

for dist in list(importlib.metadata.distributions()):
# skip named dists that do not start with dlt-
if hasattr(dist, "name") and not dist.name.startswith("dlt-"):
if hasattr(dist, "name") and (dist.name is None or not dist.name.startswith("dlt-")):
continue
for ep in dist.entry_points:
if (
Expand Down

0 comments on commit 2e959b9

Please sign in to comment.