Workaround for pyopengl import error

This commit is contained in:
Luke Campagnola 2016-10-25 21:03:09 -07:00
parent 6ea2bce484
commit 56efcbe981

View File

@ -3,7 +3,9 @@ try:
from ..Qt import QtOpenGL
from OpenGL.GL import *
HAVE_OPENGL = True
except ImportError:
except Exception:
# Would prefer `except ImportError` here, but some versions of pyopengl generate
# AttributeError upon import
HAVE_OPENGL = False
from .. import functions as fn