Skip to content

Conversation

@sam-watttime
Copy link
Contributor

This replaces printed warnings with logging, along with a custom WattTimeAPIWarning class for future portability.

In addition to logging warnings, warnings are also stored in a class attribute, so that they can be referenced programmatically. This is helpful for large pulls, which may result in multiple warnings (e.g. MISSING_DATA) to make these easier to track and remedy.

In addition, 500 warnings are retried up to three times, as these warnings (although rare) can be intermittently caused by large historical data requests and usually remedy themselves with subsequent retries.

sam-watttime and others added 29 commits February 11, 2025 15:32
@sam-watttime sam-watttime requested a review from xginn8 as a code owner October 30, 2025 22:01
@sam-watttime
Copy link
Contributor Author

This change was on the #41 (report card branch), but unrelated to that work.

@sam-watttime sam-watttime requested review from jcofield and xginn8 and removed request for xginn8 October 30, 2025 22:01
@jcofield jcofield changed the base branch from future-release to main November 2, 2025 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants