Handle locked DB exception

This commit is contained in:
Arun Prakash Jana 2018-05-26 20:01:33 +05:30
parent 7cea005918
commit e68bc3e472
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -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