From 1fd74b05cf49f6e1f65a008a9f6dd268b590f41a Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Sat, 23 Mar 2024 15:31:18 +0545 Subject: [PATCH] collect: do not log exc_info (#518) * collect: do not log exc_info This might mislead the user to believe it's an error. See https://github.com/iterative/dvc/issues/10309#issuecomment-2016423953 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/dvc_data/index/collect.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/dvc_data/index/collect.py b/src/dvc_data/index/collect.py index eba95c84..908646f5 100644 --- a/src/dvc_data/index/collect.py +++ b/src/dvc_data/index/collect.py @@ -101,11 +101,8 @@ def collect( # noqa: C901, PLR0912, PLR0915 fsid = data.fs.fsid except (NotImplementedError, AttributeError): fsid = data.fs.protocol - except BaseException as exc: # noqa: BLE001 - logger.debug( - "skipping index collection for data with invalid fsid", - exc_info=exc, - ) + except BaseException: # noqa: BLE001 + logger.debug("skipping index collection for data with invalid fsid") continue key = (fsid, tokenize(data.path))