From 466b8931afe0db3a44a5929b3dfb0441d0137c19 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 26 Jun 2008 16:38:10 -0400 Subject: check for empty method list on call cmd. dont traceback if we get one --- func/overlord/cmd_modules/call.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/func/overlord/cmd_modules/call.py b/func/overlord/cmd_modules/call.py index 53db70e..4615dd5 100644 --- a/func/overlord/cmd_modules/call.py +++ b/func/overlord/cmd_modules/call.py @@ -104,6 +104,11 @@ class Call(base_command.BaseCommand): # I kind of feel like we shouldn't be parsing args here, but I'm # not sure what the write place is -al; + + if not args: + self.outputUsage() + return + self.module = args[0] if len(args) > 1: self.method = args[1] -- cgit