Skip to content

Commit

Permalink
Merge pull request ciromattia#553
Browse files Browse the repository at this point in the history
* warn p7zip-rar

* replace strerror
  • Loading branch information
axu2 authored Jul 5, 2023
1 parent 5902d88 commit a520245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def getWorkFolder(afile):
path = cbx.extract(workdir)
except OSError as e:
rmtree(workdir, True)
raise UserWarning(e.strerror)
raise UserWarning(e)
else:
raise UserWarning("Failed to open source file/directory.")
sanitizePermissions(path)
Expand Down
4 changes: 2 additions & 2 deletions kindlecomicconverter/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, source):
self.rawdata = cbx.extractMetadata()
self.format = cbx.type
except OSError as e:
raise UserWarning(e.strerror)
raise UserWarning(e)
if self.rawdata:
self.parseXML()

Expand Down Expand Up @@ -121,5 +121,5 @@ def saveXML(self):
cbx = comicarchive.ComicArchive(self.source)
cbx.addFile(tmpXML)
except OSError as e:
raise UserWarning(e.strerror)
raise UserWarning(e)
rmtree(workdir)

0 comments on commit a520245

Please sign in to comment.