Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvoisin
mat2
Commits
abcdf07e
Commit
abcdf07e
authored
1 year ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Properly handle a cairo exception
parent
a3081bce
No related branches found
No related tags found
No related merge requests found
Pipeline
#166479
passed with warnings
1 year ago
Stage: linting
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmat2/pdf.py
+4
-1
4 additions, 1 deletion
libmat2/pdf.py
with
4 additions
and
1 deletion
libmat2/pdf.py
+
4
−
1
View file @
abcdf07e
...
@@ -36,7 +36,10 @@ class PDFParser(abstract.AbstractParser):
...
@@ -36,7 +36,10 @@ class PDFParser(abstract.AbstractParser):
def
remove_all
(
self
)
->
bool
:
def
remove_all
(
self
)
->
bool
:
if
self
.
lightweight_cleaning
is
True
:
if
self
.
lightweight_cleaning
is
True
:
try
:
return
self
.
__remove_all_lightweight
()
return
self
.
__remove_all_lightweight
()
except
cairo
.
Error
as
e
:
raise
RuntimeError
(
e
)
return
self
.
__remove_all_thorough
()
return
self
.
__remove_all_thorough
()
def
__remove_all_lightweight
(
self
)
->
bool
:
def
__remove_all_lightweight
(
self
)
->
bool
:
...
...
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