Handle locked DB exception
This commit is contained in:
parent
7cea005918
commit
e68bc3e472
6
buku.py
6
buku.py
@ -919,6 +919,9 @@ class BukuDb:
|
||||
except sqlite3.IntegrityError:
|
||||
logerr('URL already exists')
|
||||
return False
|
||||
except sqlite3.OperationalError as e:
|
||||
logerr(e)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
@ -1411,6 +1414,9 @@ class BukuDb:
|
||||
except IndexError:
|
||||
logerr('No matching index %d', index)
|
||||
return False
|
||||
except sqlite3.OperationalError as e:
|
||||
logerr(e)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user