Skip to content

Commit dafe7b6

Browse files
committed
chore: fmt
Signed-off-by: Danju Visvanathan <danju.visvanathan@gmail.com>
1 parent 256e94f commit dafe7b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

openfeature/hook/logging_hook.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def error(
6363
) -> None:
6464
args = self._build_args(hook_context)
6565
args["stage"] = "error"
66-
args["error_code"] = exception.error_code if isinstance(exception, OpenFeatureError) else ErrorCode.GENERAL
66+
args["error_code"] = (
67+
exception.error_code
68+
if isinstance(exception, OpenFeatureError)
69+
else ErrorCode.GENERAL
70+
)
6771
args["error_message"] = str(exception)
6872
self.logger.error("Error stage %s", args)

0 commit comments

Comments
 (0)