Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit f8774ef

Browse files
committed
Merge pull request MeetMe#239 from trbs/timeout_exception
catch Timeout exception
2 parents 9f76f24 + a5b5ec0 commit f8774ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

newrelic_plugin_agent/agent.py

+2
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ def send_components(self, components, metrics):
233233
response.content.strip())
234234
except requests.ConnectionError as error:
235235
LOGGER.error('Error reporting stats: %s', error)
236+
except requests.Timeout as error:
237+
LOGGER.error('TimeoutError reporting stats: %s', error)
236238

237239
@staticmethod
238240
def _get_plugin(plugin_path):

0 commit comments

Comments
 (0)