Skip to content

Commit fd9940f

Browse files
committed
Wrap gtk3cairo test in try except
1 parent 1a182a9 commit fd9940f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

setupext.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -1853,10 +1853,15 @@ def check_requirements(self):
18531853
p = multiprocessing.Pool()
18541854
except:
18551855
return "unknown (can not use multiprocessing to determine)"
1856-
res = p.map_async(backend_gtk3cairo_internal_check, [0])
1857-
success, msg = res.get(timeout=5)[0]
1858-
p.close()
1859-
p.join()
1856+
try:
1857+
res = p.map_async(backend_gtk3cairo_internal_check, [0])
1858+
success, msg = res.get(timeout=5)[0]
1859+
except:
1860+
success = False
1861+
raise
1862+
finally:
1863+
p.close()
1864+
p.join()
18601865
if success:
18611866
BackendAgg.force = True
18621867

0 commit comments

Comments
 (0)