diff --git a/gns3server/controller/compute.py b/gns3server/controller/compute.py index ede441f8..71c8848c 100644 --- a/gns3server/controller/compute.py +++ b/gns3server/controller/compute.py @@ -129,7 +129,10 @@ class Compute: self._user = user.strip() if password: self._password = password.strip() - self._auth = aiohttp.BasicAuth(self._user, self._password, "utf-8") + try: + self._auth = aiohttp.BasicAuth(self._user, self._password, "utf-8") + except ValueError as e: + log.error(str(e)) else: self._password = None self._auth = aiohttp.BasicAuth(self._user, "") @@ -665,4 +668,3 @@ class Compute: return (this_interface["ip_address"], other_interface["ip_address"]) raise ValueError("No common subnet for compute {} and {}".format(self.name, other_compute.name)) -