python3 Execute except Exception, e Error [How to Solve]

During code execution, an error except timeoutexception is found. E:
the reasons are as follows:

This code is only available in python2 X is available, and python 3 no longer uses this method

Switch the corresponding version to python2
Modify except Exception e: to except Exception as e:

Read More: