Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Raise NoFeatureFlagFound instead of handle missing flags #7

Merged
merged 2 commits into from Jul 31, 2014
Merged

Raise NoFeatureFlagFound instead of handle missing flags #7

merged 2 commits into from Jul 31, 2014

Conversation

iurisilvio
Copy link
Contributor

The handler is not responsible to handle the feature flag missing. I expect the KeyError only if it was not found in any handler.

The current implementation works for only one handler.

This is my first step to create a custom handler. I want to make the core responsible for missing keys.

I'm not sure about the exception name. Django use DoesNotExist, SQLAlchemy use NoResultFound, but I tried FeatureFlagNotFound, NotFound, FeatureNotFound and others.

Trigger the missing feature behaviour only if the feature wasn't
found in any handler.
catermelon pushed a commit that referenced this pull request Jul 31, 2014
Raise NoFeatureFlagFound instead of handle missing flags
@catermelon catermelon merged commit 2ddb4c4 into rachelsanders:master Jul 31, 2014
@catermelon
Copy link
Collaborator

I think the name is just fine - it's clear to me. Thanks so much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants