Skip to content

Commit ffc217e

Browse files
committed
consolidate exception strings
1 parent 7411f0c commit ffc217e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

locale/circuitpython.pot

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ msgstr ""
156156
msgid "%q out of bounds"
157157
msgstr ""
158158

159-
#: shared-bindings/wifi/Monitor.c
160-
msgid "%d out of bounds"
161-
msgstr ""
162-
163159
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
164160
#: shared-bindings/canio/Match.c
165161
msgid "%q out of range"

shared-bindings/wifi/Monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(wifi_monitor_get_channel_obj, wifi_monitor_obj_get_cha
8585
STATIC mp_obj_t wifi_monitor_obj_set_channel(mp_obj_t self_in, mp_obj_t channel) {
8686
mp_int_t c = mp_obj_get_int(channel);
8787
if (c < 1 || c > 13) {
88-
mp_raise_ValueError_varg(translate("%d out of bounds"), c);
88+
mp_raise_ValueError_varg(translate("%q out of bounds"), MP_QSTR_channel);
8989
}
9090
common_hal_wifi_monitor_set_channel(self_in, c);
9191
return mp_const_none;

0 commit comments

Comments
 (0)