1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

nlmanager: fix IPAddress's repr, which must return a str

Signed-off-by: Alexandre Bruyelles <abruyelles@odiso.com>
This commit is contained in:
Alexandre Bruyelles
2020-08-27 12:13:55 +02:00
parent c7a0cd032c
commit 0044f105ef

View File

@@ -146,7 +146,7 @@ class IPAddress(IPNetwork):
self.ignore_prefixlen()
def __repr__(self):
return self._ip
return str(self._ip)
def __raise_exception(self, ip):
raise ValueError(