Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Merge requests
!256
Resolve "Job Failed #80694"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Job Failed #80694"
feat/180-job-failed-80694
into
develop
Overview
1
Commits
2
Pipelines
5
Changes
4
Merged
Waleed Akbar
requested to merge
feat/180-job-failed-80694
into
develop
9 months ago
Overview
1
Commits
2
Pipelines
5
Changes
4
Expand
Closes
#180 (closed)
0
0
Merge request reports
Compare
develop
version 1
a8912315
9 months ago
develop (base)
and
latest version
latest version
0190accb
2 commits,
9 months ago
version 1
a8912315
1 commit,
9 months ago
4 files
+
17
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/kpi_manager/database/Kpi_DB.py
+
3
−
2
Options
@@ -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