print('异常信息:\n%s' % traceback.format_exc())
打印信息如下:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:/procedure/python/shopSpider/videoSpider.py", line 180, in getPlayInfo
ses.commit()