From c7484801571b8627709626439a246e4959b15b2b Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Tue, 24 Jun 2003 21:59:57 +0000 Subject: [PATCH] Fixed bug where you can't get help without specifying a daemon svn path=/trunk/boinc/; revision=1583 --- sched/kill_server | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sched/kill_server b/sched/kill_server index bb6cf9b5df..b550daf586 100755 --- a/sched/kill_server +++ b/sched/kill_server @@ -31,8 +31,6 @@ quiet = False verbose = False try: opts, args = getopt.getopt(sys.argv[1:], 'qvh') - if not args: - raise Exception, "No daemons specified" except Exception, e: print >>sys.stderr, e print >>sys.stderr, "Use '%s -h' for help" % sys.argv[0] @@ -42,6 +40,10 @@ for opt,v in opts: elif opt == '-v': verbose = True elif opt == '-h': help() else: assert(False) +if not args: + print >>sys.stderr, "No daemons specified" + print >>sys.stderr, "Use '%s -h' for help" % sys.argv[0] + sys.exit(1) if 'ALL' in args: args = daemons