py/scheduler: Add "raise_exc" argument to mp_handle_pending.
Previous behaviour is when this argument is set to "true", in which case the function will raise any pending exception. Setting it to "false" will cancel any pending exception.
This commit is contained in:
@@ -162,7 +162,7 @@ NORETURN static void exception_from_errno(int _errno) {
|
||||
}
|
||||
|
||||
static inline void check_for_exceptions(void) {
|
||||
mp_handle_pending();
|
||||
mp_handle_pending(true);
|
||||
}
|
||||
|
||||
// This function mimics lwip_getaddrinfo, with added support for mDNS queries
|
||||
|
||||
Reference in New Issue
Block a user