Skip to content

Commit 21e52b7

Browse files
chrfwowgruebel
andauthored
Update providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/flags.py
Co-authored-by: Anton Grübel <anton.gruebel@gmail.com> Signed-off-by: chrfwow <christian.lutnik@dynatrace.com>
1 parent e054a4f commit 21e52b7

File tree

1 file changed

+1
-6
lines changed
  • providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process

1 file changed

+1
-6
lines changed

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/resolvers/process/flags.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ def _validate_metadata(key: str, value: typing.Union[float, int, str, bool]) ->
1111
if key is None:
1212
raise ParseError("Metadata key must be set")
1313
elif not isinstance(key, str):
14-
raise ParseError(
15-
"Metadata key "
16-
+ str(key)
17-
+ " must be of type str, but is "
18-
+ str(type(key))
19-
)
14+
raise ParseError(f"Metadata key {key} must be of type str, but is {type(key}")
2015
elif not key:
2116
raise ParseError("key must not be empty")
2217
if value is None:

0 commit comments

Comments
 (0)