mosquito / serial2tcp

Server for proxy COM (usb-com) serial port as tcp socket.
37 stars 17 forks source link

Syntax error due to exception syntax #3

Open brentjm opened 6 years ago

brentjm commented 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:

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:

mosquito commented 6 years ago

This project has been written for python 2.6+. I have never test it on python 3+.

Livius90 commented 2 months ago

It was solved in the following PR: https://github.com/mosquito/serial2tcp/pull/2