From ed140bf4b5c79df0bae5e1157ec01ad13a8e932d Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 10 May 2013 01:38:30 +0200 Subject: [PATCH] [attributs] ip4_of_rid mange un entier ou un string --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index c3e9b41..6bce468 100644 --- a/attributs.py +++ b/attributs.py @@ -563,7 +563,7 @@ class ipHostNumber(Attr): def parse_value(self, ip): if ip == '': - ip = ip4_of_rid(self.parent['rid'][0]) + ip = ip4_of_rid(str(self.parent['rid'][0])) self.value = netaddr.ip.IPAddress(ip) def __unicode__(self):