[supervise] supression du except socket.gaierror

This commit is contained in:
Maxime Alves LIRMM@home 2021-01-27 13:44:46 +01:00
commit 3ab8af7f74

View file

@ -7,7 +7,6 @@ import time
import json
import os
import re
import socket
import sys
import time
import urllib
@ -192,14 +191,10 @@ def supervise(since):
**{'path': get_path}
}
try:
get_resp = requests.get(
url=build_url(get_url),
verify=False
)
except socket.gaierror as exc:
logger.error('Socket error : %s', exc)
sys.exit(-1)
get_resp = requests.get(
url=build_url(get_url),
verify=False
)
control_data = get_resp.json()
if Heatpump(mac_address).control(control_data):