Skip to content

Commit 3ff272a

Browse files
committed
Add properties to API
1 parent ebbd907 commit 3ff272a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modcamera_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static void camera_obj_property(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
403403
case MP_QSTR_pixel_height:
404404
case MP_QSTR_max_frame_size:
405405
case MP_QSTR_sensor_name:
406-
mp_raise_AttributeError(MP_ERROR_TEXT("read-only property"));
406+
mp_raise_ValueError(MP_ERROR_TEXT("read-only property"));
407407
break;
408408

409409
// Read-write properties

0 commit comments

Comments
 (0)