parent
75c0a750c1
commit
1aed4ff2a5
@ -38,7 +38,7 @@ class PDFParser(abstract.AbstractParser):
|
|||||||
if self.lightweight_cleaning is True:
|
if self.lightweight_cleaning is True:
|
||||||
try:
|
try:
|
||||||
return self.__remove_all_lightweight()
|
return self.__remove_all_lightweight()
|
||||||
except cairo.Error as e:
|
except (cairo.Error, MemoryError) as e:
|
||||||
raise RuntimeError(e)
|
raise RuntimeError(e)
|
||||||
return self.__remove_all_thorough()
|
return self.__remove_all_thorough()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user