Skip to content

Commit

Permalink
Avoid potential KeyError in _load
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonvt committed Apr 28, 2023
1 parent 1499f52 commit babe328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cognite/client/data_classes/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def __init__(self, timestamp: int, message: str):
def _load(cls, response: Dict[str, Any]) -> FunctionCallLogEntry:
return cls(
timestamp=response["timestamp"],
message=response["message"],
message=response.get("message", ""),
)


Expand Down

0 comments on commit babe328

Please sign in to comment.