diff --git a/pyqtgraph/opengl/items/GLTextItem.py b/pyqtgraph/opengl/items/GLTextItem.py index b1b1b6c0..1a79095a 100644 --- a/pyqtgraph/opengl/items/GLTextItem.py +++ b/pyqtgraph/opengl/items/GLTextItem.py @@ -39,7 +39,7 @@ class GLTextItem(GLGraphicsItem): args = ['pos', 'color', 'text', 'font'] for k in kwds.keys(): if k not in args: - raise ArgumentError('Invalid keyword argument: %s (allowed arguments are %s)' % (k, str(args))) + raise ValueError('Invalid keyword argument: %s (allowed arguments are %s)' % (k, str(args))) for arg in args: if arg in kwds: value = kwds[arg]