Skip to content

Commit

Permalink
Workaround for pyopengl import error
Browse files Browse the repository at this point in the history
  • Loading branch information
campagnola committed Oct 26, 2016
1 parent 6ea2bce commit 56efcbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyqtgraph/widgets/RawImageWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
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
Expand Down

0 comments on commit 56efcbe

Please sign in to comment.