enthought / pyface

pyface: traits-capable windowing framework
Other
105 stars 55 forks source link

Include cause of toolkit import failure #1157

Closed mdickinson closed 2 years ago

mdickinson commented 2 years ago

This PR updates the RuntimeError that appears when no toolkit can be loaded to include the immediate cause of the failure. The goal is to make debugging CI failures along these lines less painful: the RuntimeError is often caused by some obscure ImportError somewhere down the stack, and with the current code that import error is hidden from view in the CI output.