Skip to content

Commit 533a84f

Browse files
authored
Merge pull request adafruit#4804 from bergdahl/errormessages-ip
Removed 'raw' from error message 'raw int'
2 parents 038c9d6 + 38177af commit 533a84f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

locale/circuitpython.pot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,10 @@ msgstr ""
16721672
msgid "Only edge detection is available on this hardware"
16731673
msgstr ""
16741674

1675+
#: shared-bindings/ipaddress/__init__.c
1676+
msgid "Only int or string supported for ip"
1677+
msgstr ""
1678+
16751679
#: shared-module/displayio/OnDiskBitmap.c
16761680
#, c-format
16771681
msgid ""
@@ -1693,10 +1697,6 @@ msgstr ""
16931697
msgid "Only one color can be transparent at a time"
16941698
msgstr ""
16951699

1696-
#: shared-bindings/ipaddress/__init__.c
1697-
msgid "Only raw int or string supported for ip"
1698-
msgstr ""
1699-
17001700
#: ports/esp32s2/bindings/espidf/__init__.c ports/esp32s2/esp_error.c
17011701
msgid "Operation or feature not supported"
17021702
msgstr ""

shared-bindings/ipaddress/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ STATIC mp_obj_t ipaddress_ip_address(mp_obj_t ip_in) {
9191
mp_raise_ValueError(translate("Not a valid IP string"));
9292
}
9393
} else {
94-
mp_raise_ValueError(translate("Only raw int or string supported for ip"));
94+
mp_raise_ValueError(translate("Only int or string supported for ip"));
9595
}
9696

9797
return common_hal_ipaddress_new_ipv4address(value);

0 commit comments

Comments
 (0)