diff --git a/vino.go b/vino.go index 2f78b36c2fbbb84a2d406507eedc15476f7724c8..3b0226c0775574bfb1ec06414525f0384b02c02e 100644 --- a/vino.go +++ b/vino.go @@ -55,7 +55,8 @@ func (i *ISO2CountryCode) UnmarshalBinary(d []byte) error { } if len(d) != 2 { - return errors.New("invalid length") + *i = UnknownCountry + return nil } *i = ISO2CountryCode{d[0], d[1]}