Skip to content

Commit cbd0c2a

Browse files
Pavel Minaevint19h
authored andcommitted
Fix #1379: Error while enumerating installed packages.
When logging environment info, report all errors at "info" level.
1 parent 5723ed6 commit cbd0c2a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/debugpy/common/log.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def report_paths(get_paths, label=None):
304304
swallow_exception(
305305
"Error evaluating {0}",
306306
repr(expr) if expr else util.srcnameof(get_paths),
307+
level="info",
307308
)
308309
return
309310

@@ -360,7 +361,9 @@ def report_paths(get_paths, label=None):
360361
for pkg in importlib_metadata.distributions():
361362
report(" {0}=={1}\n", pkg.name, pkg.version)
362363
except Exception: # pragma: no cover
363-
swallow_exception("Error while enumerating installed packages.")
364+
swallow_exception(
365+
"Error while enumerating installed packages.", level="info"
366+
)
364367

365368
return "".join(result).rstrip("\n")
366369

0 commit comments

Comments
 (0)