Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: client/third_party/infra_libs/ts_mon/common/monitors.py

Issue 1894593004: luci-py: roll infra_libs / gae_ts_mon to 4d74a66 (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/third_party/infra_libs/httplib2_utils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/third_party/infra_libs/ts_mon/common/monitors.py
diff --git a/client/third_party/infra_libs/ts_mon/common/monitors.py b/client/third_party/infra_libs/ts_mon/common/monitors.py
index 01fdbc12bf24fd9083740ab594955efdea1705a3..36d12899e69a5c6d34fb83aea61d638e0b2dc448 100644
--- a/client/third_party/infra_libs/ts_mon/common/monitors.py
+++ b/client/third_party/infra_libs/ts_mon/common/monitors.py
@@ -8,6 +8,7 @@
import base64
import json
import logging
+import socket
import traceback
from googleapiclient import discovery
@@ -162,7 +163,9 @@ class PubSubMonitor(Monitor):
self._api.projects().topics().publish(
topic=self._topic,
body=body).execute(num_retries=5)
- except (ValueError, errors.Error):
+ except (ValueError, errors.Error,
+ socket.timeout, socket.error, socket.herror, socket.gaierror,
+ httplib2.HttpLib2Error):
# Log a warning, not error, to avoid false alarms in AppEngine apps.
logging.warning('PubSubMonitor.send failed:\n%s',
traceback.format_exc())
« no previous file with comments | « client/third_party/infra_libs/httplib2_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698