我在boto3模块中收到错误IncompleteRead(0 bytes read)
,这很令人遗憾。我尝试使用下面的代码捕获此错误。
from botocore.exceptions import IncompleteReadError
try:
.......
except IncompleteReadError as e_temp:
error_message = "\nIncompleteRead Error: \n\t" + str(lineno()) + ": " + str(e_temp)
LOGGER.error(error_message)
但我无法捕获此错误。怎么抓到呢?