Skip to content
Snippets Groups Projects

Resolve "(TID) Add inventory NBI to WebUI"

Merged Pablo Armingol requested to merge feat/173-tid-add-inventory-nbi-to-webui into develop
2 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -85,8 +85,9 @@ class KpiDB:
# LOGGER.debug(f"{model.__name__} ID found: {str(entity)}")
return entity
else:
LOGGER.debug(f"{model.__name__} ID not found: {str(id_to_search)}")
raise NotFoundException (model.__name__, id_to_search, extra_details=["Row not found with ID"] )
LOGGER.debug(f"{model.__name__} ID not found, No matching row: {str(id_to_search)}")
print("{:} ID not found, No matching row: {:}".format(model.__name__, id_to_search))
return None
except Exception as e:
session.rollback()
LOGGER.debug(f"Failed to retrieve {model.__name__} ID. {str(e)}")
Loading