diff --git a/autopush/router/webpush.py b/autopush/router/webpush.py index b196c25b..135f6462 100644 --- a/autopush/router/webpush.py +++ b/autopush/router/webpush.py @@ -25,6 +25,7 @@ ) from twisted.logger import Logger from twisted.web._newclient import ResponseFailed +from twisted.web.http import PotentialDataLoss from autopush.exceptions import ItemNotFound, RouterException from autopush.metrics import make_tags @@ -83,7 +84,7 @@ def route_notification(self, notification, uaid_data): result = yield self._send_notification(uaid, node_id, notification) except (ConnectError, ConnectionClosed, ResponseFailed, - CancelledError) as exc: + CancelledError, PotentialDataLoss) as exc: self.metrics.increment("updates.client.host_gone") yield deferToThread(router.clear_node, uaid_data).addErrback(self._eat_db_err)