Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update execution_context.py
Fix execution content for retriveal
  • Loading branch information
kashyap-thacker authored Aug 29, 2023
commit 6bc7f84a2d27e32551d435cf98042232cf9a76b9
4 changes: 2 additions & 2 deletions python_common_logger/src/context/execution_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_context_by_key(self, key: str) -> str:
Returns:
any: Execution Context
"""
return copy.deepcopy(self._context[key])
return copy.deepcopy(self._context.get(key))

def get_context(self) -> dict:
"""
Expand All @@ -77,4 +77,4 @@ def reset(self):
"""
Resets the execution context.
"""
self._context = {}
self._context = {}