fix state issue

This commit is contained in:
Alex Xu
2023-07-23 15:25:35 -07:00
parent 17e8ffb7c0
commit 5a21ff0bcf
6 changed files with 23 additions and 26 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ class MetadataParser:
self.rawdata = cbx.extractMetadata()
self.format = cbx.type
except OSError as e:
raise UserWarning(e.strerror)
raise UserWarning(e)
if self.rawdata:
self.parseXML()
@@ -121,5 +121,5 @@ class MetadataParser:
cbx = comicarchive.ComicArchive(self.source)
cbx.addFile(tmpXML)
except OSError as e:
raise UserWarning(e.strerror)
raise UserWarning(e)
rmtree(workdir)