Commit acdd52f4 authored by Zenon Mousmoulas's avatar Zenon Mousmoulas
Browse files

small fix

parent e0adfeb0
......@@ -37,7 +37,7 @@ class ServerDataReader:
if re.match(r"^https?://", self.src) is not None:
resp = requests.get(src)
except ConnectionError:
except requests.ConnectionError:
exit_with_error("Connection failed for %s" % src)
if resp.status_code > 304 or not resp.ok:
exit_with_error("Fetch failed from %s" % src)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment