diff --git a/socs/agents/ucsc_radiometer/agent.py b/socs/agents/ucsc_radiometer/agent.py index 7d3f6f063..a452638fc 100644 --- a/socs/agents/ucsc_radiometer/agent.py +++ b/socs/agents/ucsc_radiometer/agent.py @@ -73,6 +73,10 @@ def acq(self, session, params=None): except ValueError: pm.sleep() continue + except requests.exceptions.ConnectionError: + self.log.warn("Unable to connect to radiometer server. Connection closed. Trying again..") + pm.sleep() + continue data = r.json() last_pwv = data['pwv'] last_timestamp = data['timestamp']