Skip to content

Commit

Permalink
add connection error exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sanahabhimani committed Nov 13, 2023
1 parent 5960617 commit 2db4074
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions socs/agents/ucsc_radiometer/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def acq(self, session, params=None):
except ValueError:
pm.sleep()
continue
except requests.exceptions.ConnectionError:
pm.sleep()
continue
data = r.json()
last_pwv = data['pwv']
last_timestamp = data['timestamp']
Expand Down

0 comments on commit 2db4074

Please sign in to comment.