We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 901f9af commit dc12e2dCopy full SHA for dc12e2d
1 file changed
mtapi/mtapi.py
@@ -113,7 +113,7 @@ def _load_mta_feed(self, feed_url):
113
data = r.read()
114
return FeedResponse(data)
115
116
- except (urllib.error.URLError, google.protobuf.message.DecodeError) as e:
+ except (urllib.error.URLError, google.protobuf.message.DecodeError, ConnectionResetError) as e:
117
logger.error('Couldn\'t connect to MTA server: ' + str(e))
118
return False
119
0 commit comments