执行代码时,发现报错except TimeoutException,e:
原因如下:
此代码只在python2.x可使用,python3已不再使用此方法。
解决办法:
对应的版本切换到python2
将
except Exception e: 修改为 except Exception as e:
执行代码时,发现报错except TimeoutException,e:
原因如下:
此代码只在python2.x可使用,python3已不再使用此方法。
解决办法:
对应的版本切换到python2
将
except Exception e: 修改为 except Exception as e: