Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
zesje
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Works on my machine
zesje
Commits
37d72dd2
Commit
37d72dd2
authored
5 years ago
by
Ruben Young On
Browse files
Options
Downloads
Patches
Plain Diff
Unexpected error in scans.py also returns a traceback. Refactored pregrader
parent
f193b86f
No related branches found
No related tags found
1 merge request
!17
Add pregrading
Pipeline
#17934
passed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
zesje/pregrader.py
+1
-1
1 addition, 1 deletion
zesje/pregrader.py
zesje/scans.py
+1
-1
1 addition, 1 deletion
zesje/scans.py
with
2 additions
and
2 deletions
zesje/pregrader.py
+
1
−
1
View file @
37d72dd2
...
...
@@ -13,7 +13,7 @@
import
cv2
import
numpy
as
np
from
zesje.database
import
db
,
Solution
,
ProblemWidget
,
Problem
from
zesje.database
import
db
,
Solution
,
ProblemWidget
from
zesje.images
import
guess_dpi
,
get_box
,
fix_corner_markers
...
...
This diff is collapsed.
Click to expand it.
zesje/scans.py
+
1
−
1
View file @
37d72dd2
...
...
@@ -54,7 +54,7 @@ def process_pdf(scan_id):
# TODO: When #182 is implemented, properly separate user-facing
# messages (written to DB) from developer-facing messages,
# which should be written into the log.
write_pdf_status
(
scan_id
,
'
error
'
,
"
Unexpected error:
"
+
traceback
.
format_exc
())
write_pdf_status
(
scan_id
,
'
error
'
,
f
"
Unexpected error:
{
error
}
\n
Traceback:
\n
"
+
traceback
.
format_exc
())
def
_process_pdf
(
scan_id
,
app_config
):
...
...
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