-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index: load: ignore misc exceptions #409
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #409 +/- ##
==========================================
- Coverage 61.45% 61.41% -0.04%
==========================================
Files 57 57
Lines 3803 3807 +4
Branches 671 672 +1
==========================================
+ Hits 2337 2338 +1
- Misses 1330 1332 +2
- Partials 136 137 +1
☔ View full report in Codecov by Sentry. |
@@ -540,6 +544,9 @@ def _load_from_storage(trie, entry, storage_info): | |||
return | |||
except (FileNotFoundError, ObjectFormatError): | |||
pass | |||
except Exception: # pylint: disable=W0703 | |||
# NOTE: this might be some random fs exception, e.g. auth error | |||
logger.exception("failed to load %s", entry.key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will users see this? can it happen in a CLI case ...
overall looks a bit fragile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now just ignoring, later will likely add an onerror mechanism.
No description provided.