Skip to content

Commit

Permalink
debug_console.py: exit when no pandas found (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored and legonigel committed Apr 1, 2019
1 parent 06958e4 commit 62d4219
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/debug_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

pandas = list(map(lambda x: Panda(x, claim=claim), serials))

if not len(pandas):
sys.exit("no pandas found")

if os.getenv("BAUD") is not None:
for panda in pandas:
panda.set_uart_baud(port_number, int(os.getenv("BAUD")))
Expand Down

0 comments on commit 62d4219

Please sign in to comment.