Skip to content
Snippets Groups Projects
Commit 2c908ba2f79c authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: fix code, spotted thanks to :shirt: pylint

parent 3ab7999f2abe
No related branches found
Tags 13.0.3.0.1
2 merge requests!30Merge 13.0 (13.0.3.0.2 ➔ 13.0.3.1.0),!25Topic/13.0/fix
......@@ -2,6 +2,11 @@
History
*******
3.0.1
=====
Fix code errors.
3.0.0
=====
......
......@@ -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/",
......
......@@ -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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment