Closed bocephasj closed 1 year ago
Hi @bocephasj,
base.py does not include any code similar to that.
If this is your code, use parenthesis for multiple exceptions or remove the comma for a single exception and as
word to assign the exception to a variable:
try:
[...]
except TimeoutException as ex:
print(ex)
See https://docs.python.org/3.9/tutorial/errors.html#handling-exceptions and https://docs.python.org/3.9/reference/compound_stmts.html#except
I am getting a syntax error - except TimeoutException, ex: - python 3.9 says syntax error @ comma in this statement in base.py of xbee library. Does anyone know why?
ignore timeouts, but this allows the thread to be responsive rather