Skip to content
Snippets Groups Projects

Resolve "Job Failed #80694"

Merged Waleed Akbar requested to merge feat/180-job-failed-80694 into develop
4 files
+ 17
5
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -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