Dolda2000 GitWeb
/
automanga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c11ebe
)
Raise slightly more helpful error on idpageget failure.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 31 Dec 2015 02:44:28 +0000
(
03:44
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 31 Dec 2015 02:44:28 +0000
(
03:44
+0100)
manga/reader.py
patch
|
blob
|
blame
|
history
diff --git
a/manga/reader.py
b/manga/reader.py
index
c957b13
..
0940a6c
100644
(file)
--- a/
manga/reader.py
+++ b/
manga/reader.py
@@
-157,7
+157,10
@@
class idpageget(future):
self.idlist = idlist
def value(self):
- return lib.cursor(self.bnode.byidlist(self.idlist)).cur
+ try:
+ return lib.cursor(self.bnode.byidlist(self.idlist)).cur
+ except KeyError:
+ raise KeyError("could not find last read page: " + repr(self.idlist))
class pageget(future):
def __init__(self, fnode):