Skip to content

Commit

Permalink
Fix provenance in case broken packages are in the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jul 18, 2024
1 parent cc92ea5 commit cb53347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctapipe/core/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def provenance(self):
def _get_python_packages():
return [
{"name": p.name, "version": p.version}
for p in sorted(distributions(), key=lambda d: d.name)
for p in sorted(distributions(), key=lambda d: (d.name or "").lower())
]


Expand Down

0 comments on commit cb53347

Please sign in to comment.