Try catching the tk error in pypy

This commit is contained in:
wiredfool 2014-03-26 13:12:20 -07:00
parent 7e80ce9ce0
commit d4ecef390f

View File

@ -80,7 +80,8 @@ def _read(file):
try:
import _tkinter
except ImportError:
except (ImportError, OSError):
# pypy emits an oserror
_tkinter = None