fix(commands|Network>iplocalise): close #6

This commit is contained in:
Romain J 2021-01-30 13:44:34 +01:00
parent 0687ee3f06
commit 45d4aa1dc5

View file

@ -83,7 +83,7 @@ class IPVersionConverter(commands.Converter):
if not argument:
return argument
argument = argument.replace("-", "").replace("p", "").replace("v", "")
argument = argument.replace("-", "").replace("ip", "").replace("v", "")
if argument not in ["4", "6"]:
raise InvalidIp(_("Invalid ip version"))