pre-commit run -a

This commit is contained in:
Iván Todorovich
2026-05-20 09:53:30 -03:00
parent 16af2b988d
commit 3330aa4986
14 changed files with 26 additions and 29 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class OdooJsonFormatter(jsonlogger.JsonFormatter):
record.dbname = getattr(threading.current_thread(), "dbname", "?")
record.request_id = getattr(threading.current_thread(), "request_uuid", None)
record.uid = getattr(threading.current_thread(), "uid", None)
_super = super(OdooJsonFormatter, self)
_super = super()
return _super.add_fields(log_record, record, message_dict)
+1 -1
View File
@@ -18,4 +18,4 @@ def strtobool(value):
try:
return _MAP[str(value).lower()]
except KeyError as error:
raise ValueError('"{}" is not a valid bool value'.format(value)) from error
raise ValueError(f'"{value}" is not a valid bool value') from error