From 3f01a654d15ec1bc4431662680e4a4c80ba4dc69 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 18 Jul 2024 14:07:08 +0200 Subject: [PATCH] return up --- logfire/_internal/collect_system_info.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/logfire/_internal/collect_system_info.py b/logfire/_internal/collect_system_info.py index 0e5762a94..4ff5101bf 100644 --- a/logfire/_internal/collect_system_info.py +++ b/logfire/_internal/collect_system_info.py @@ -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 {}