Skip to content

Commit

Permalink
catch empty case
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry committed Aug 5, 2024
1 parent 17d790b commit a3ead7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weldx/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def enable_quality_standard(name: str, version: AsdfVersion | str = None):
def load_installed_standards():
"""Load all standards that are installed to the active virtual environment."""
if sys.version_info < (3, 10):
entry_points = importlib.metadata.entry_points()["weldx.standard"]
entry_points = importlib.metadata.entry_points().get("weldx.standard", [])

Check warning on line 180 in weldx/config.py

View check run for this annotation

Codecov / codecov/patch

weldx/config.py#L180

Added line #L180 was not covered by tests
else:
entry_points = importlib.metadata.entry_points().select(
group="weldx.standard"
Expand Down

0 comments on commit a3ead7e

Please sign in to comment.