Open brentjm opened 6 years ago
When running this with the Python 3.4.2 interpreter serial2tcp -p /dev/ttyUSB0 -b 9600 -l 0.0.0.0 –allow-list="10.131.72.169" I receive the following error:
serial2tcp -p /dev/ttyUSB0 -b 9600 -l 0.0.0.0 –allow-list="10.131.72.169"
File "/home/pi/Documents/balance/bin/serial2tcp", line 52 except socket.error, msg: ^ SyntaxError: invalid syntax
I believe this should now be
except socket.error as msg:
This project has been written for python 2.6+. I have never test it on python 3+.
It was solved in the following PR: https://github.com/mosquito/serial2tcp/pull/2
When running this with the Python 3.4.2 interpreter
serial2tcp -p /dev/ttyUSB0 -b 9600 -l 0.0.0.0 –allow-list="10.131.72.169"
I receive the following error:I believe this should now be
except socket.error as msg: