Skip to content
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

fix: Offline handler not used as fallback for local evaluation mode during init #100

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Aug 8, 2024

Closes #99.

Note that as part of this change, the update_environment() method is not supposed to produce HTTP-related exceptions now.

@khvn26 khvn26 requested review from a team and zachaysan and removed request for a team August 8, 2024 18:49
@github-actions github-actions bot added the fix label Aug 8, 2024
Copy link
Contributor

@zachaysan zachaysan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one question

Comment on lines +285 to +286
except (FlagsmithAPIError, requests.RequestException):
logger.exception("Error updating environment")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we early return here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The _update_overrides() method does it.

@khvn26 khvn26 merged commit 6f6d595 into main Aug 12, 2024
7 checks passed
@khvn26 khvn26 deleted the fix/offline-handler-not-used-as-fallback-for-local-eval branch August 12, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use offline_handler as initialization fallback for local evaluation mode
3 participants