File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
# fmt: off
13
13
14
14
from adafruit_ticks import ticks_ms as ticks , ticks_diff , ticks_add
15
- import sys , select
15
+ import sys , select , traceback
16
16
17
17
# Import TaskQueue and Task, preferring built-in C code over Python code
18
18
try :
@@ -278,9 +278,8 @@ def get_exception_handler():
278
278
return Loop ._exc_handler
279
279
280
280
def default_exception_handler (loop , context ):
281
- print (context ["message" ])
282
- print ("future:" , context ["future" ], "coro=" , context ["future" ].coro )
283
- sys .print_exception (context ["exception" ])
281
+ exc = context ["exception" ]
282
+ traceback .print_exception (None , exc , exc .__traceback__ )
284
283
285
284
def call_exception_handler (context ):
286
285
(Loop ._exc_handler or Loop .default_exception_handler )(Loop , context )
You can’t perform that action at this time.
0 commit comments