Fix exception for unknown class

This commit is contained in:
Bob Lantz
2015-03-18 15:31:40 -07:00
parent e5a5cd0070
commit 4da7b3b7f0
+1 -2
View File
@@ -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: