mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-25 17:18:11 +00:00
fix: explicit encoding for faulthandler file open (ruff PLW1514)
This commit is contained in:
parent
83fe362e80
commit
7a62f62197
1 changed files with 2 additions and 1 deletions
|
|
@ -7777,9 +7777,10 @@ class GatewayRunner(GatewayAuthorizationMixin, GatewayKanbanWatchersMixin, Gatew
|
|||
)
|
||||
_faulthandler_path = os.path.join(_log_dir, "gateway_faulthandler.log")
|
||||
os.makedirs(_log_dir, exist_ok=True)
|
||||
_fh = open(_faulthandler_path, "a", encoding="utf-8")
|
||||
faulthandler.register(
|
||||
signal.SIGUSR2,
|
||||
file=open(_faulthandler_path, "a"),
|
||||
file=_fh,
|
||||
all_threads=True,
|
||||
chain=True,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue