mirror of
https://github.com/gosticks/RIOT.git
synced 2026-10-07 08:17:10 +00:00
Merge pull request #10481 from aabadie/pr/tools/pyterm_exception
tools/pyterm: catch serial.Exception when serial port is busy
This commit is contained in:
Vendored
+3
@@ -247,6 +247,9 @@ class SerCmd(cmd.Cmd):
|
||||
self.logger.error("Cannot connect to serial port {}: {}"
|
||||
.format(self.port, e.strerror))
|
||||
sys.exit(1)
|
||||
except serial.SerialException as e:
|
||||
self.logger.error("%s", e.strerror)
|
||||
sys.exit(1)
|
||||
|
||||
# wait until connection is established and fire startup
|
||||
# commands to the node
|
||||
|
||||
Reference in New Issue
Block a user