Skip to content
Snippets Groups Projects

Resolve "(CTTC) Multiple Bug Fixes affecting `common` code"

3 files
+ 7
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -37,7 +37,9 @@ class InMemoryObjectDatabase:
LOGGER.debug('[get_entry] BEFORE database={:s}'.format(str(self._database)))
container = self._get_container(container_name)
if entry_uuid not in container:
context.abort(grpc.StatusCode.NOT_FOUND, str('{:s}({:s}) not found'.format(container_name, entry_uuid)))
MSG = '{:s}({:s}) not found; available({:s})'
msg = str(MSG.format(container_name, entry_uuid, str(container.keys())))
context.abort(grpc.StatusCode.NOT_FOUND, msg)
return container[entry_uuid]
def set_entry(self, container_name : str, entry_uuid : str, entry : Any) -> Any:
Loading