Commits

Armin Rigo committed b040a64

(yamt) Accept any exception from 'import _curses', like cffi's VerificationError.

Comments (0)

Files changed (1)

pypy/module/_minimal_curses/__init__.py

 try:
     import _curses
-except ImportError:
+except Exception:   # probably ImportError or cffi's VerificationError
     try:
         # when running on top of pypy before it had _curses, settle for minimal
         # we prefer _curses so any constants added make it into _minimal_curses