Merge pull request #4804 from bergdahl/errormessages-ip

Removed 'raw' from error message 'raw int'
This commit is contained in:
Scott Shawcroft 2021-05-24 13:32:50 -07:00 committed by GitHub
commit 533a84fe80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1672,6 +1672,10 @@ msgstr ""
msgid "Only edge detection is available on this hardware"
msgstr ""
#: shared-bindings/ipaddress/__init__.c
msgid "Only int or string supported for ip"
msgstr ""
#: shared-module/displayio/OnDiskBitmap.c
#, c-format
msgid ""
@ -1693,10 +1697,6 @@ msgstr ""
msgid "Only one color can be transparent at a time"
msgstr ""
#: shared-bindings/ipaddress/__init__.c
msgid "Only raw int or string supported for ip"
msgstr ""
#: ports/esp32s2/bindings/espidf/__init__.c ports/esp32s2/esp_error.c
msgid "Operation or feature not supported"
msgstr ""

View File

@ -91,7 +91,7 @@ STATIC mp_obj_t ipaddress_ip_address(mp_obj_t ip_in) {
mp_raise_ValueError(translate("Not a valid IP string"));
}
} else {
mp_raise_ValueError(translate("Only raw int or string supported for ip"));
mp_raise_ValueError(translate("Only int or string supported for ip"));
}
return common_hal_ipaddress_new_ipv4address(value);