Skip to content

Commit f5bf485

Browse files
committed
use handy macro instead
1 parent 247125d commit f5bf485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/bitmapfilter/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ STATIC mp_obj_t bitmapfilter_morph(size_t n_args, const mp_obj_t *pos_args, mp_m
134134
mp_obj_t weights = args[ARG_weights].u_obj;
135135
mp_obj_t obj_len = mp_obj_len(weights);
136136
if (obj_len == MP_OBJ_NULL || !mp_obj_is_small_int(obj_len)) {
137-
mp_raise_ValueError_varg(MP_ERROR_TEXT("%q must be of type %q, not %q"), MP_QSTR_weights, MP_QSTR_Sequence, mp_obj_get_type(weights)->name);
137+
mp_raise_ValueError_varg(MP_ERROR_TEXT("%q must be of type %q, not %q"), MP_QSTR_weights, MP_QSTR_Sequence, mp_obj_get_type_qstr(weights));
138138
}
139139

140140
size_t n_weights = MP_OBJ_SMALL_INT_VALUE(obj_len);

0 commit comments

Comments
 (0)