displayio: Remove verbose error

This commit is contained in:
Jensen 2020-10-14 23:05:19 -05:00
parent cb0a4abc95
commit b02a5bcbd5

View File

@ -116,10 +116,7 @@ const mp_obj_property_t displayio_colorconverter_dither_obj = {
STATIC mp_obj_t displayio_colorconverter_make_transparent(mp_obj_t self_in, mp_obj_t transparent_color_obj) {
displayio_colorconverter_t *self = MP_OBJ_TO_PTR(self_in);
mp_int_t transparent_color;
if (!mp_obj_get_int(&transparent_color)) {
mp_raise_ValueError(translate("transparent_color should be an int"));
}
mp_int_t transparent_color = mp_obj_get_int(&transparent_color);
common_hal_displayio_colorconverter_make_transparent(self, transparent_color);
return mp_const_none;
}