Fix bug in GLViewWidget.py

call debug.printExc() instead of pyqtgraph.debug.printExc()
This commit is contained in:
Tran Duy Hoa 2018-10-26 23:06:23 +02:00 committed by GitHub
parent e5e103de6d
commit 16616c77b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,7 +427,7 @@ class GLViewWidget(QtOpenGL.QGLWidget):
ver = glGetString(GL_VERSION).split()[0] ver = glGetString(GL_VERSION).split()[0]
if int(ver.split('.')[0]) < 2: if int(ver.split('.')[0]) < 2:
from .. import debug from .. import debug
pyqtgraph.debug.printExc() debug.printExc()
raise Exception(msg + " The original exception is printed above; however, pyqtgraph requires OpenGL version 2.0 or greater for many of its 3D features and your OpenGL version is %s. Installing updated display drivers may resolve this issue." % ver) raise Exception(msg + " The original exception is printed above; however, pyqtgraph requires OpenGL version 2.0 or greater for many of its 3D features and your OpenGL version is %s. Installing updated display drivers may resolve this issue." % ver)
else: else:
raise raise