Fix a wrong exception name
authorIustin Pop <iustin@google.com>
Tue, 9 Oct 2007 09:13:56 +0000 (09:13 +0000)
committerIustin Pop <iustin@google.com>
Tue, 9 Oct 2007 09:13:56 +0000 (09:13 +0000)
This was introduced in rev 208.

Reviewed-by: imsnah

lib/cli.py

index 08a9064..5eaa390 100644 (file)
@@ -60,7 +60,7 @@ def _ExtractTagsObject(opts, args):
     retval = kind, kind
   elif kind == constants.TAG_NODE or kind == constants.TAG_INSTANCE:
     if not args:
-      raise errors.OpPrereq("no arguments passed to the command")
+      raise errors.OpPrereqError("no arguments passed to the command")
     name = args.pop(0)
     retval = kind, name
   else: