Skip to content

Commit 2b3f798

Browse files
committed
return default dict if not meta provided
1 parent 9590554 commit 2b3f798

File tree

1 file changed

+1
-1
lines changed
  • providers/openfeature-provider-ofrep/src/openfeature/contrib/provider/ofrep

1 file changed

+1
-1
lines changed

providers/openfeature-provider-ofrep/src/openfeature/contrib/provider/ofrep/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _resolve(
168168
value=data["value"],
169169
reason=Reason[data["reason"]],
170170
variant=data["variant"],
171-
flag_metadata=data["metadata"],
171+
flag_metadata=data.get("metadata", {}),
172172
)
173173

174174
def _handle_error(self, exception: requests.RequestException) -> NoReturn:

0 commit comments

Comments
 (0)