mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 15:55:49 -04:00
handle new chrome cookie db schema
This commit is contained in:
parent
a1af18230c
commit
a8de9b70d1
@ -112,9 +112,17 @@ class Chrome:
|
||||
try:
|
||||
with sqlite3.connect(cookie_location) as conn:
|
||||
cur = conn.cursor()
|
||||
cur.execute('UPDATE cookies SET persistent = 1')
|
||||
cur.execute('UPDATE cookies SET is_persistent = 1')
|
||||
except sqlite3.Error:
|
||||
self.logger.error('exception updating cookie DB', exc_info=True)
|
||||
try:
|
||||
# db schema changed around version 66, this is the old schema
|
||||
with sqlite3.connect(cookie_location) as conn:
|
||||
cur = conn.cursor()
|
||||
cur.execute('UPDATE cookies SET persistent = 1')
|
||||
except sqlite3.Error:
|
||||
self.logger.error(
|
||||
'exception updating cookie DB %s', cookie_location,
|
||||
exc_info=True)
|
||||
|
||||
cookie_db = None
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user