Fix lint warning
This commit is contained in:
parent
e3068a84f4
commit
532cad6148
10
buku
10
buku
@ -1988,11 +1988,11 @@ class BukuDb:
|
|||||||
# If range starts from 0 throw an error
|
# If range starts from 0 throw an error
|
||||||
if low <= 0:
|
if low <= 0:
|
||||||
raise IndexError
|
raise IndexError
|
||||||
else:
|
|
||||||
qry = 'SELECT URL from bookmarks where id BETWEEN ? AND ?'
|
qry = 'SELECT URL from bookmarks where id BETWEEN ? AND ?'
|
||||||
for row in self.cur.execute(qry, (low, high)):
|
for row in self.cur.execute(qry, (low, high)):
|
||||||
browse(row[0])
|
browse(row[0])
|
||||||
return True
|
return True
|
||||||
except IndexError:
|
except IndexError:
|
||||||
LOGERR('Index out of range')
|
LOGERR('Index out of range')
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user