handle new chrome cookie db schema

This commit is contained in:
Noah Levitt 2018-05-15 11:41:02 -07:00
parent a1af18230c
commit a8de9b70d1
2 changed files with 11 additions and 3 deletions

View File

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

View File

@ -32,7 +32,7 @@ def find_package_data(package):
setuptools.setup(
name='brozzler',
version='1.1b13.dev288',
version='1.1b13.dev289',
description='Distributed web crawling with browsers',
url='https://github.com/internetarchive/brozzler',
author='Noah Levitt',