translate() messages must be one string

This commit is contained in:
Dan Halbert 2023-03-14 13:13:58 -04:00
parent 9083ae02de
commit d4840cbf10
2 changed files with 2 additions and 4 deletions

View File

@ -79,8 +79,7 @@ void common_hal_espcamera_camera_construct(
if (common_hal_espidf_get_reserved_psram() == 0) {
mp_raise_msg(&mp_type_MemoryError, translate(
"espcamera.Camera requires reserved PSRAM to be configured. "
"See the documentation for instructions."));
"espcamera.Camera requires reserved PSRAM to be configured. See the documentation for instructions."));
}
for (int i = 0; i < 8; i++) {
claim_pin_number(data_pins[i]);

View File

@ -271,8 +271,7 @@ STATIC mp_obj_t pwmio_pwmout_obj_set_frequency(mp_obj_t self_in, mp_obj_t freque
check_for_deinit(self);
if (!common_hal_pwmio_pwmout_get_variable_frequency(self)) {
mp_raise_AttributeError(translate(
"PWM frequency not writable when variable_frequency is False on "
"construction."));
"PWM frequency not writable when variable_frequency is False on construction."));
}
mp_int_t freq = mp_obj_get_int(frequency);
if (freq == 0) {