mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-10 15:56:03 +00:00
fix: ruff
This commit is contained in:
@@ -82,6 +82,7 @@ def _translate_action_error(exc: Exception) -> BoxError:
|
||||
BoxSessionNotFoundError,
|
||||
BoxValidationError,
|
||||
)
|
||||
|
||||
msg = str(exc)
|
||||
_ERROR_PREFIX_MAP: list[tuple[str, type[BoxError]]] = [
|
||||
('BoxValidationError:', BoxValidationError),
|
||||
@@ -182,10 +183,10 @@ class ActionRPCBoxClient(BoxRuntimeClient):
|
||||
base = ws_relay_base_url
|
||||
if base.startswith('https://'):
|
||||
scheme = 'wss://'
|
||||
suffix = base[len('https://'):]
|
||||
suffix = base[len('https://') :]
|
||||
elif base.startswith('http://'):
|
||||
scheme = 'ws://'
|
||||
suffix = base[len('http://'):]
|
||||
suffix = base[len('http://') :]
|
||||
else:
|
||||
scheme = 'ws://'
|
||||
suffix = base
|
||||
|
||||
Reference in New Issue
Block a user