Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
bug: Handle PotentialDataLoss error
Browse files Browse the repository at this point in the history
Closes #1151
  • Loading branch information
jrconlin committed Mar 12, 2018
1 parent 1b0be54 commit 7f60f82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autopush/router/webpush.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7f60f82

Please sign in to comment.