Skip to content

Commit

Permalink
.decode("utf-8")
Browse files Browse the repository at this point in the history
  • Loading branch information
axu2 authored Aug 5, 2023
1 parent db0186d commit 264b658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kindlecomicconverter/comicarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def extract(self, targetdir):
process = subprocess.run(f"unar '{self.filepath}' -f -o '{targetdir}'",
stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=True)
if process.returncode != 0:
raise Exception(process.stdout)
raise Exception(process.stdout.decode("utf-8"))
elif process.returncode != 0:
raise OSError('Failed to extract archive. Check if p7zip-rar is installed.')
tdir = os.listdir(targetdir)
Expand Down

0 comments on commit 264b658

Please sign in to comment.