mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
Update Python packages and pre-commit hooks (#31003)
* Update Python packages and pre-commit hooks * fix --------- Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com> old-commit-hash: a8afaf39d4d8c1b1b2b4070441d05aed14f982f5
This commit is contained in:
@@ -65,7 +65,7 @@ class SwagFormatter(logging.Formatter):
|
||||
|
||||
return record_dict
|
||||
|
||||
def format(self, record): # noqa: A003
|
||||
def format(self, record):
|
||||
if self.swaglogger is None:
|
||||
raise Exception("must set swaglogger before calling format()")
|
||||
return json_robust_dumps(self.format_dict(record))
|
||||
@@ -95,7 +95,7 @@ class SwagLogFileFormatter(SwagFormatter):
|
||||
k += "$a"
|
||||
return k, v
|
||||
|
||||
def format(self, record): # noqa: A003
|
||||
def format(self, record):
|
||||
if isinstance(record, str):
|
||||
v = json.loads(record)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user