From 39d27afa5e0649770e0117e844b6c5e306d78404 Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Fri, 5 Jan 2018 19:20:42 +0200 Subject: [PATCH] [FIX] sentry: Fix SanitizeOdooCookiesProcessor after raven 6.4.0 Closes #1096 --- sentry/__manifest__.py | 2 +- sentry/logutils.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sentry/__manifest__.py b/sentry/__manifest__.py index 1ef7acfdb..d6377d5f4 100644 --- a/sentry/__manifest__.py +++ b/sentry/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Sentry', 'summary': 'Report Odoo errors to Sentry', - 'version': '10.0.1.0.0', + 'version': '10.0.1.0.1', 'category': 'Extra Tools', 'website': 'https://odoo-community.org/', 'author': 'Mohammed Barsi,' diff --git a/sentry/logutils.py b/sentry/logutils.py index 178a518db..0726f6f72 100644 --- a/sentry/logutils.py +++ b/sentry/logutils.py @@ -101,6 +101,9 @@ class SanitizeOdooCookiesProcessor(SanitizePasswordsProcessor): Allows to sanitize sensitive Odoo cookies, namely the "session_id" cookie. ''' - FIELDS = frozenset([ + # `FIELDS` was renamed to `KEYS` in raven 6.4.0. + # Keep `FIELDS` for backwards compatibility. + # See also issue #1096 on OCA/server-tools. + KEYS = FIELDS = frozenset([ 'session_id', ])