Remove made up ValueError (#42)
This commit is contained in:
parent
bb2221ba8c
commit
cf82e2d51d
|
@ -32,8 +32,7 @@ func init*(T: type ValidIpAddress, str: string): T
|
|||
{.raises: [ValueError].} =
|
||||
ValidIpAddress(value: stdNet.parseIpAddress(str))
|
||||
|
||||
func init*(T: type ValidIpAddress, ip: IpAddress): T
|
||||
{.raises: [ValueError].} =
|
||||
func init*(T: type ValidIpAddress, ip: IpAddress): T =
|
||||
ValidIpAddress(value: ip)
|
||||
|
||||
converter toNormalIp*(ip: ValidIpAddress): IpAddress =
|
||||
|
|
Loading…
Reference in New Issue