Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
job_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
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
videoag
job_controller
Commits
c3a22e43
Commit
c3a22e43
authored
8 months ago
by
Simon Künzel
Browse files
Options
Downloads
Patches
Plain Diff
Fix sorter exception catching
parent
be04340f
No related branches found
No related tags found
No related merge requests found
Pipeline
#6874
passed
8 months ago
Stage: build-base
Stage: build-other
Pipeline: job_controller
#6880
Pipeline: job_controller
#6879
Pipeline: job_controller
#6878
+2
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
jobs/source_file_sorter/job.py
+1
-1
1 addition, 1 deletion
jobs/source_file_sorter/job.py
with
1 addition
and
1 deletion
jobs/source_file_sorter/job.py
+
1
−
1
View file @
c3a22e43
...
@@ -359,7 +359,7 @@ def _sort_medium(session: SessionDb, own_job_id: int, db_path: str):
...
@@ -359,7 +359,7 @@ def _sort_medium(session: SessionDb, own_job_id: int, db_path: str):
# Set AFTER moving the file, as moving is more likely to throw exception than setting the variable
# Set AFTER moving the file, as moving is more likely to throw exception than setting the variable
# Note that with an exception the medium variables will still be updated in the database
# Note that with an exception the medium variables will still be updated in the database
medium
.
file_path
=
_get_db_path
(
dest_file
)
medium
.
file_path
=
_get_db_path
(
dest_file
)
except
Exception
as
e
:
except
IOError
as
e
:
# Don't catch stuff like database errors
logger
.
error
(
"
Exception while sorting medium
"
,
exc_info
=
e
)
logger
.
error
(
"
Exception while sorting medium
"
,
exc_info
=
e
)
medium
.
sorter_error_message
=
f
"
Exception while sorting:
{
e
}
"
medium
.
sorter_error_message
=
f
"
Exception while sorting:
{
e
}
"
medium
.
lecture_id
=
None
medium
.
lecture_id
=
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment