diff --git a/wakatime/session_cache.py b/wakatime/session_cache.py index 7986fa0..3cff2a5 100644 --- a/wakatime/session_cache.py +++ b/wakatime/session_cache.py @@ -52,7 +52,7 @@ class SessionCache(object): conn, c = self.connect() c.execute('DELETE FROM session') values = { - 'value': pickle.dumps(session), + 'value': pickle.dumps(session, protocol=2), } c.execute('INSERT INTO session VALUES (:value)', values) conn.commit()