Skip to content

Commit

Permalink
Merge pull request #2595 from cta-observatory/fix_docs_build
Browse files Browse the repository at this point in the history
Fix provenance in case broken packages are in the environment
  • Loading branch information
maxnoe authored Jul 18, 2024
2 parents cc92ea5 + cb53347 commit 24201c2
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 24201c2

Please sign in to comment.