dhylands / rshell

Remote Shell for MicroPython
MIT License
951 stars 134 forks source link

Entering REPL mode crashes program #55

Open rolandvs opened 6 years ago

rolandvs commented 6 years ago

@dhylands - I run across a problem using rshell.

When there is no board.py file with name='pyboard' on the target system, the program exits with an error:

/Users/roland/workspace/rshell> repl
Executing "repl"
Entering REPL. Use Control-X to exit.
Exception in thread REPL_serial_to_stdout:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/roland/workspace/rshell/rshell/main.py", line 2253, in repl_serial_to_stdout
    save_timeout = dev.timeout()
TypeError: 'NoneType' object is not callable
dhylands commented 6 years ago

This problem was introduced in 0.0.13 and fixed in 0.0.14