Skip to content

Commit

Permalink
return up
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jul 18, 2024
1 parent 1637653 commit 3f01a65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions logfire/_internal/collect_system_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def collect_package_info() -> dict[str, str]:
# Currently this is about 2x slower because `dist.name` and `dist.version` each call `dist.metadata`,
# which reads and parses a file and is not cached.
pairs = [(dist.name, dist.version) for dist in distributions]
return dict(sorted(pairs))
except Exception: # pragma: no cover
# Don't crash for this.
pairs = []

return dict(sorted(pairs))
return {}

0 comments on commit 3f01a65

Please sign in to comment.