Added/corrected timeouts for sqlite3 database connections
Bumped mail plugin patch version for sqlite3 timeout change Code formatting corrections
This commit is contained in:
parent
2a7c933321
commit
0b2658374b
13 changed files with 158 additions and 123 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name" : "pms",
|
||||
"version" : "0.1.0",
|
||||
"version" : "0.1.1",
|
||||
"author" : "onionr"
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ import notifier
|
|||
locale.setlocale(locale.LC_ALL, '')
|
||||
|
||||
plugin_name = 'pms'
|
||||
PLUGIN_VERSION = '0.1.0'
|
||||
PLUGIN_VERSION = '0.1.1'
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
||||
import sentboxdb, mailapi, loadinbox # import after path insert
|
||||
|
|
|
@ -31,7 +31,7 @@ class SentBox:
|
|||
return
|
||||
|
||||
def connect(self):
|
||||
self.conn = sqlite3.connect(self.dbLocation)
|
||||
self.conn = sqlite3.connect(self.dbLocation, timeout=30)
|
||||
self.cursor = self.conn.cursor()
|
||||
|
||||
def close(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue