Skip to content

Commit

Permalink
Fix in getFileDataConv
Browse files Browse the repository at this point in the history
  • Loading branch information
mitshel committed Mar 31, 2018
1 parent 857869d commit 02505a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opds_catalog/dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def getFileDataConv(book, convert_type):
popen_args = ("\"%s\" \"%s\" \"%s\"" % (converter_path, tmp_fb2_path, tmp_conv_path))
proc = subprocess.Popen(popen_args, shell=True, stdout=subprocess.PIPE)
#out = proc.stdout.readlines()
os.remove(tmp_fb2_path)

if os.path.isfile(tmp_conv_path):
fo = codecs.open(tmp_conv_path, "rb")
Expand All @@ -126,6 +125,7 @@ def getFileDataConv(book, convert_type):
dio.seek(0)

fo.close()
os.remove(tmp_fb2_path)
os.remove(tmp_conv_path)

return dio
Expand Down

0 comments on commit 02505a9

Please sign in to comment.