Skip to content

Commit

Permalink
collect: do not log exc_info (#518)
Browse files Browse the repository at this point in the history
* collect: do not log exc_info

This might mislead the user to believe it's an error. See

iterative/dvc#10309 (comment)

* [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>
  • Loading branch information
skshetry and pre-commit-ci[bot] authored Mar 23, 2024
1 parent 5887a8b commit 1fd74b0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dvc_data/index/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1fd74b0

Please sign in to comment.