Commit 121c0923 authored by Ralf's avatar Ralf
Browse files

SpeaceAPI: expect OSErrors, and handle them

parent d9e3c9fd
......@@ -32,7 +32,7 @@ class SpaceApi:
return True
logger.error("SpaceAPI: returned unexpected code {}:\n{}".format(response.getcode(), responseText))
return False
except urllib.request.URLError as e:
except (urllib.request.URLError, OSError) as e:
logger.error("SpaceAPI: update returned error: {}".format(str(e)))
return False
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