summaryrefslogtreecommitdiff
path: root/shared-bindings/pulseio/PulseOut.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared-bindings/pulseio/PulseOut.c')
-rw-r--r--shared-bindings/pulseio/PulseOut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/pulseio/PulseOut.c b/shared-bindings/pulseio/PulseOut.c
index a44e28d5d..dc3c02500 100644
--- a/shared-bindings/pulseio/PulseOut.c
+++ b/shared-bindings/pulseio/PulseOut.c
@@ -71,7 +71,7 @@ STATIC mp_obj_t pulseio_pulseout_make_new(const mp_obj_type_t *type, size_t n_ar
mp_obj_t carrier_obj = args[0];
if (!MP_OBJ_IS_TYPE(carrier_obj, &pulseio_pwmout_type)) {
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "Expected a %q", pulseio_pwmout_type.name));
+ mp_raise_TypeError_varg("Expected a %q", pulseio_pwmout_type.name);
}
// create Pulse object from the given pin