Error Python version 3.6 does not support this syntax.

Brian Oney brian.j.oney at googlemail.com
Tue Nov 27 08:18:08 EST 2018


On Tue, 2018-11-27 at 13:50 +0100, srinivasan wrote:
> 
> *        except BluetoothctlError, e:*
> 
I don't have python3.6 available, but I believe the proper syntax is:

except BluetoothctlError as e:
    print(e)

See:
https://docs.python.org/3/tutorial/errors.html?highlight=exception


HTW



More information about the Python-list mailing list