8000 displayio: Remove verbose error · jensechu/circuitpython@b02a5bc · GitHub
[go: up one dir, main page]

Skip to content

Commit b02a5bc

Browse files
committed
displayio: Remove verbose error
1 parent cb0a4ab commit b02a5bc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

shared-bindings/displayio/ColorConverter.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ const mp_obj_property_t displayio_colorconverter_dither_obj = {
116116
STATIC mp_obj_t displayio_colorconverter_make_transparent(mp_obj_t self_in, mp_obj_t transparent_color_obj) {
117117
displayio_colorconverter_t *self = MP_OBJ_TO_PTR(self_in);
118118

119-
mp_int_t transparent_color;
120-
if (!mp_obj_get_int(&transparent_color)) {
121-
mp_raise_ValueError(translate("transparent_color should be an int"));
122-
}
119+
mp_int_t transparent_color = mp_obj_get_int(&transparent_color);
123120
common_hal_displayio_colorconverter_make_transparent(self, transparent_color);
124121
return mp_const_none;
125122
}

0 commit comments

Comments
 (0)
0