Skip to content

Commit 98e55eb

Browse files
committed
Only add module when printing exception.
1 parent 521c753 commit 98e55eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/_bleio/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ STATIC MP_DEFINE_CONST_DICT(bleio_module_globals, bleio_module_globals_table);
160160
void bleio_exception_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) {
161161
mp_print_kind_t k = kind & ~PRINT_EXC_SUBCLASS;
162162
bool is_subclass = kind & PRINT_EXC_SUBCLASS;
163-
if (!is_subclass && (k == PRINT_REPR || k == PRINT_EXC)) {
163+
if (!is_subclass && (k == PRINT_EXC)) {
164164
mp_print_str(print, qstr_str(MP_OBJ_QSTR_VALUE(bleio_module_globals_table[0].value)));
165165
mp_print_str(print, ".");
166166
}

0 commit comments

Comments
 (0)