我正在尝试在Python 2.7中捕获这个特定的异常(仅此异常),但是我似乎找不到关于这个异常类的文档。有吗?
[Errno 10054] An existing connection was forcibly closed by the remote host
到目前为止我的代码:
try:
# Deleting filename
self.ftp.delete(filename)
return True
except (error_reply, error_perm, error_temp):
return False
except # ?? What goes here for Errno 10054 ??
reconnect()
retry_action()