raise ValueError instead of ctypes.ArgumentError
ctypes.ArgumentError got imported through PyOpenGL import *
This commit is contained in:
parent
f85a1015ad
commit
31e10fdc1d
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user