made optional api calls log to debug instead of error#527
Conversation
|
test |
Code ReviewOverall this is a clean, DRY refactor. The Minor issues1. Missing return type annotation Per project convention (CLAUDE.md: use @contextmanager
def optional_api_call(description: str):Should be: from collections.abc import Generator
@contextmanager
def optional_api_call(description: str) -> Generator[None, None, None]:This will also satisfy 2.
Not a bug (the exception catch still works), but it is a subtle mismatch between what the docstring implies ("RapidataApiClient errors are logged at DEBUG") and what 3. Log message wording change (minor) The original messages were call-site-specific ("Failed to check beta features", "Failed to check for updates"). The new message is generic: "Optional call '%s' failed: %s". Fine for end-users, but worth noting if anyone is grepping for the old strings in tests or monitoring. What is done well
No blocking issues. Resolve the type annotation (to keep |
No description provided.