# HG changeset patch
# User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>
# Date 1657197988 -7200
#      Thu Jul 07 14:46:28 2022 +0200
# Branch 13.0
# Node ID 2c908ba2f79caedbc299fb18d5c929480bcbd464
# Parent  3ab7999f2abe0d56ea505cf5523da8ca5d957b98
🚑 fix code, spotted thanks to 👕 pylint

diff --git a/NEWS.rst b/NEWS.rst
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -2,6 +2,11 @@
 History
 *******
 
+3.0.1
+=====
+
+Fix code errors.
+
 3.0.0
 =====
 
diff --git a/__manifest__.py b/__manifest__.py
--- a/__manifest__.py
+++ b/__manifest__.py
@@ -21,7 +21,7 @@
     "name": "Converter",
     "license": "AGPL-3",
     "summary": "Convert odoo records to/from plain data structures.",
-    "version": "13.0.3.0.0",
+    "version": "13.0.3.0.1",
     "category": "Hidden",
     "author": "XCG Consulting",
     "website": "https://odoo.consulting/",
diff --git a/model.py b/model.py
--- a/model.py
+++ b/model.py
@@ -77,7 +77,7 @@
             try:
                 self.validator.validate(self._jsonschema, message_data)
             except jsonschema.exceptions.ValidationError as exception:
-                _logger.warning("Validation failed", exception)
+                _logger.warning("Validation failed", exc_info=1)
                 if self.validation == VALIDATION_STRICT:
                     raise exception
 
diff --git a/switch.py b/switch.py
--- a/switch.py
+++ b/switch.py
@@ -111,7 +111,7 @@
             converter.validation = value
 
     def get__type__(self) -> Set[str]:
-        types = []
+        types = set()
         for _out_cond, _in_cond, converter in self._converters:
             types.update(converter.get__type__())
         return types