From f6bf474c86c89376ade59ae26b6e4f72983bad06 Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Fri, 5 Jan 2018 11:42:31 +0200 Subject: [PATCH] [FIX] sentry: Fix SanitizeOdooCookiesProcessor after raven 6.4.0 --- sentry/logutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sentry/logutils.py b/sentry/logutils.py index 3a3155e0f..e268670e0 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', ])