Fix lint warning

This commit is contained in:
Arun Prakash Jana 2019-03-01 04:15:37 +05:30
parent e3068a84f4
commit 532cad6148
No known key found for this signature in database
GPG Key ID: A75979F35C080412

10
buku
View File

@ -1988,11 +1988,11 @@ class BukuDb:
# If range starts from 0 throw an error
if low <= 0:
raise IndexError
else:
qry = 'SELECT URL from bookmarks where id BETWEEN ? AND ?'
for row in self.cur.execute(qry, (low, high)):
browse(row[0])
return True
qry = 'SELECT URL from bookmarks where id BETWEEN ? AND ?'
for row in self.cur.execute(qry, (low, high)):
browse(row[0])
return True
except IndexError:
LOGERR('Index out of range')
return False