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
No related tags found
2 merge requests!30Merge 13.0 (13.0.3.0.2 ➔ 13.0.3.1.0),!25Topic/13.0/fix
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
History History
******* *******
3.0.1
=====
Fix code errors.
3.0.0 3.0.0
===== =====
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"name": "Converter", "name": "Converter",
"license": "AGPL-3", "license": "AGPL-3",
"summary": "Convert odoo records to/from plain data structures.", "summary": "Convert odoo records to/from plain data structures.",
"version": "13.0.3.0.0", "version": "13.0.3.0.1",
"category": "Hidden", "category": "Hidden",
"author": "XCG Consulting", "author": "XCG Consulting",
"website": "https://odoo.consulting/", "website": "https://odoo.consulting/",
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
try: try:
self.validator.validate(self._jsonschema, message_data) self.validator.validate(self._jsonschema, message_data)
except jsonschema.exceptions.ValidationError as exception: except jsonschema.exceptions.ValidationError as exception:
_logger.warning("Validation failed", exception) _logger.warning("Validation failed", exc_info=1)
if self.validation == VALIDATION_STRICT: if self.validation == VALIDATION_STRICT:
raise exception raise exception
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
converter.validation = value converter.validation = value
def get__type__(self) -> Set[str]: def get__type__(self) -> Set[str]:
types = [] types = set()
for _out_cond, _in_cond, converter in self._converters: for _out_cond, _in_cond, converter in self._converters:
types.update(converter.get__type__()) types.update(converter.get__type__())
return types 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