gofeatureflag-python-provider 0.4.3__tar.gz → 0.4.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gofeatureflag-python-provider
3
- Version: 0.4.3
3
+ Version: 0.4.4
4
4
  Summary: GO Feature Flag provider for OpenFeature
5
5
  License: Apache-2.0
6
6
  Keywords: feature flags,feature toggles,go-feature-flag,gofeatureflag,openfeature,open-feature
@@ -52,7 +52,7 @@ class DataCollectorHook(Hook):
52
52
  feature_event = FeatureEvent(
53
53
  contextKind=(
54
54
  "anonymousUser"
55
- if hook_context.evaluation_context.attributes["anonymous"]
55
+ if hook_context.evaluation_context.attributes.get("anonymous", False)
56
56
  else "user"
57
57
  ),
58
58
  creationDate=int(datetime.datetime.now().timestamp()),
@@ -73,7 +73,7 @@ class DataCollectorHook(Hook):
73
73
  feature_event = FeatureEvent(
74
74
  contextKind=(
75
75
  "anonymousUser"
76
- if hook_context.evaluation_context.attributes["anonymous"]
76
+ if hook_context.evaluation_context.attributes.get("anonymous", False)
77
77
  else "user"
78
78
  ),
79
79
  creationDate=int(datetime.datetime.now().timestamp()),
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "gofeatureflag-python-provider"
3
- version = "0.4.3"
3
+ version = "0.4.4"
4
4
  description = "GO Feature Flag provider for OpenFeature"
5
5
  license = "Apache-2.0"
6
6
  authors = [ "Thomas Poignant" ]