Update handlers.py
Facing error invalid literal for int with base 10 at line 85 and 87. Hence converted to float and then int.pull/236/head
parent
7709e58d64
commit
e3ddf8281d
|
|
@ -82,9 +82,9 @@ class PDFHandler(object):
|
||||||
a, b = r.split("-")
|
a, b = r.split("-")
|
||||||
if b == "end":
|
if b == "end":
|
||||||
b = infile.getNumPages()
|
b = infile.getNumPages()
|
||||||
page_numbers.append({"start": int(a), "end": int(b)})
|
page_numbers.append({"start": int(float(a)), "end": int(float(b))})
|
||||||
else:
|
else:
|
||||||
page_numbers.append({"start": int(r), "end": int(r)})
|
page_numbers.append({"start": int(float(r)), "end": int(float(r))})
|
||||||
instream.close()
|
instream.close()
|
||||||
P = []
|
P = []
|
||||||
for p in page_numbers:
|
for p in page_numbers:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue