Commit 8deb62a1 authored by Alexandre's avatar Alexandre
Browse files

Catch error on unresolvable host

parent e60a3ba5
......@@ -785,6 +785,8 @@ except ConnectionRefusedError:
error("Connection to server refused")
except ValueError:
error(f'"{url}" not a name or an IP address')
except socket.gaierror:
error(f'Could not resolve "{url}"')
except CustomException as e:
if ifile is not None:
Supports Markdown
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