Skip to content

Commit e10e8c3

Browse files
DavidLesnjakRobertRostohar
authored andcommitted
run_cmd: avoid crashes when RTTServer creation fails
1 parent b3c515f commit e10e8c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyocd/subcommands/run_cmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def __init__(self, session: Session, core: Optional[int] = None, enable_eot: boo
202202
self._semihost = semihost.SemihostAgent(self._target_context, io_handler=semihost_io_handler, console=semihost_console)
203203

204204
# Start RTT server
205+
self._rtt_server = None
205206
try:
206207
rtt_cbuild_run = RttCbuildRun(session=session, core=core)
207208
self._rtt_server = rtt_cbuild_run.start_server()

0 commit comments

Comments
 (0)