Skip to content

Commit 0fcdec1

Browse files
committed
chore: some code cleanup
1 parent a8fbb22 commit 0fcdec1

File tree

2 files changed

+3
-4
lines changed
  • packages
    • debugger/src/robotcode/debugger
    • runner/src/robotcode/runner/cli/discover

2 files changed

+3
-4
lines changed

packages/debugger/src/robotcode/debugger/run.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import functools
3-
import sys
43
import threading
54
import warnings
65
from typing import (
@@ -222,8 +221,6 @@ async def run_debugger(
222221
await run_coroutine_from_thread_async(server.protocol.exit, exit_code, loop=server.loop)
223222
except asyncio.CancelledError:
224223
pass
225-
except ConnectionError as e:
226-
print(e, file=sys.stderr)
227224
finally:
228225
if server.protocol.connected:
229226
await run_coroutine_from_thread_async(server.protocol.terminate, loop=server.loop)

packages/runner/src/robotcode/runner/cli/discover/discover.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ def visit_test(self, test: TestCase) -> None:
240240

241241

242242
@click.group(invoke_without_command=False)
243-
@click.option("--read-from-stdin", is_flag=True, help="Read file contents from stdin. This is an internal option.")
243+
@click.option(
244+
"--read-from-stdin", is_flag=True, help="Read file contents from stdin. This is an internal option.", hidden=True
245+
)
244246
@pass_application
245247
def discover(app: Application, read_from_stdin: bool) -> None:
246248
"""\

0 commit comments

Comments
 (0)