Skip to content

Commit ef540ce

Browse files
committed
debug: dont crash if ctypes is not found
1 parent 40b6032 commit ef540ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kivy/lib/debug.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,5 +308,8 @@ def tb_set_next(tb, next):
308308
# proxies.
309309
tb_set_next = None
310310
if tproxy is None:
311-
tb_set_next = _init_ugly_crap()
311+
try:
312+
tb_set_next = _init_ugly_crap()
313+
except ImportError:
314+
tb_set_next = None
312315
del _init_ugly_crap

0 commit comments

Comments
 (0)