mirror of
https://github.com/ciromattia/kcc
synced 2026-10-05 17:12:32 +00:00
remove ExpatError
This commit is contained in:
@@ -24,7 +24,6 @@ from pathlib import Path
|
||||
import platform
|
||||
from subprocess import STDOUT, PIPE, CalledProcessError
|
||||
from xml.dom.minidom import parseString
|
||||
from xml.parsers.expat import ExpatError
|
||||
from .shared import IMAGE_TYPES, subprocess_run
|
||||
|
||||
EXTRACTION_ERROR = 'Failed to extract archive. Try extracting file outside of KCC.'
|
||||
@@ -118,7 +117,7 @@ class ComicArchive:
|
||||
raise OSError(EXTRACTION_ERROR)
|
||||
try:
|
||||
return parseString(process.stdout)
|
||||
except ExpatError:
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
@lru_cache
|
||||
|
||||
Reference in New Issue
Block a user