Fix exception for unknown class
This commit is contained in:
1 parent
e5a5cd0070
commit
4da7b3b7f0
1 file changed
+1
-2
+1
-2
@@ -530,8 +530,7 @@ def customClass( classes, argStr ):
|
||||
"""
|
||||
cname, args, kwargs = splitArgs( argStr )
|
||||
cls = classes.get( cname, None )
|
||||
|
||||
if not cname:
|
||||
if not cls:
|
||||
raise Exception( "error: %s is unknown - please specify one of %s" %
|
||||
( cname, classes.keys() ) )
|
||||
if not args and not kwargs:
|
||||
|
||||
Reference in new issue
Block a user