diff --git a/brozzler/chrome.py b/brozzler/chrome.py index 1f55839..450f352 100644 --- a/brozzler/chrome.py +++ b/brozzler/chrome.py @@ -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: diff --git a/setup.py b/setup.py index d5527c4..289d224 100644 --- a/setup.py +++ b/setup.py @@ -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',