My suggestion is something like this:
Code:
if SystemInfo["imagetype"] == "release" and officialReleaseFeedsUri in SystemInfo["feedsurl"]: # we know the network is good now so only do this check on release images where the release domain applies
try:
print("[OnlineUpdateCheck][getFeedStatus] checking feeds state")
req = Request("http://openvix.co.uk/TrafficLightState.php")
d = urlopen(req, timeout=3)
trafficLight = d.read().decode()
if trafficLight == "stable":
status = 0
print("trafficLight", trafficLight)
except Exception as err:
print("[OnlineUpdateCheck][getFeedStatus] ERROR:", err)
if hasattr(err, "code"):
trafficLight = err.code
else:
trafficLight = type(err).__name__
elif SystemInfo["imagetype"] == "developer" and "openvixdev" in SystemInfo["feedsurl"]:
