Skip to content
Snippets Groups Projects
Commit 4da7b3b7 authored by Bob Lantz's avatar Bob Lantz
Browse files

Fix exception for unknown class

parent e5a5cd00
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment