From 995f25e79d32b373b12176d3b1ab6c3f6641c0fc Mon Sep 17 00:00:00 2001 From: Ihor Liubymov Date: Fri, 13 Apr 2018 12:17:11 +0300 Subject: [PATCH] added explicit type cast to string to `FluentRecordFormatter` for `exclude_attrs` case. Signed-off-by: Ihor Liubymov --- fluent/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluent/handler.py b/fluent/handler.py index f549f91..9be1c96 100644 --- a/fluent/handler.py +++ b/fluent/handler.py @@ -142,7 +142,7 @@ def _format_by_exclusion(self, record): data = {} for key, value in record.__dict__.items(): if key not in self._exc_attrs: - data[key] = value + data[key] = repr(value) return data def _format_by_dict(self, record):