Has to be safer again.
@@ -154,7 +154,9 @@ class Host(Features):
def _safe_int(maybeint):
if isinstance(maybeint, int) or maybeint is None:
return maybeint
+ if maybeint:
return int(maybeint, 0)
+ return None
def _get_ip_proto_ports(self, row, ip_proto):
