Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!70
fix: accessing self.job that is None
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
fix: accessing self.job that is None
honza/mrc
into
devel
Overview
0
Commits
1
Changes
1
Merged
Jan Prachař
requested to merge
honza/mrc
into
devel
4 years ago
Overview
0
Commits
1
Changes
1
0
0
Merge request reports
Viewing commit
fe5d167b
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
fe5d167b
fix: accessing self.job that is None
· fe5d167b
Jan Prachař
authored
4 years ago
mo/jobs/__init__.py
+
1
−
1
View file @ fe5d167b
Edit in single-file editor
Open in Web IDE
Show full file
@@ -110,7 +110,7 @@ class TheJob:
sess
=
db
.
get_session
()
if
not
self
.
load
()
or
self
.
job
.
state
!=
db
.
JobState
.
ready
:
# Někdo ho mezitím smazal nebo vyřídil
logger
.
info
(
f
'
Job: Job #
{
self
.
job
.
job
_id
}
vyřizuje někdo jiný
'
)
logger
.
info
(
f
'
Job: Job #
{
self
.
job_id
}
vyřizuje někdo jiný
'
)
sess
.
rollback
()
return
Loading