Ground Control [main]
Retry marshaller activation on timeout
[1mdiff --git a/ground-control.py b/ground-control.py[m
[1mindex ecade2b..255c155 100644[m
[1m--- a/ground-control.py[m
[1m+++ b/ground-control.py[m
[36m@@ -78,8 +78,14 @@[m [mdef is_east_door_currently_open():[m
[m
def activate_marshaller():[m
print('activating marshaller', flush=True)[m
[31m- requests.get(marshaller_uri, timeout=1)[m
[31m- requests.get(marshaller_uri, timeout=1)[m
[32m+[m
[32m+[m[32m for _ in range(2):[m
[32m+[m[32m try:[m
[32m+[m[32m requests.get(marshaller_uri, timeout=1)[m
[32m+[m[32m except requests.exceptions.ReadTimeout:[m
[32m+[m[32m print('read timeout - retrying marshaller', flush=True)[m
[32m+[m[32m sleep(2)[m
[32m+[m
requests.get(marshaller_uri, timeout=1)[m
[m
[m