diff options
| author | Bryan O'Sullivan <bos@lindenlab.com> | 2008-10-31 18:23:00 +0000 | 
|---|---|---|
| committer | Bryan O'Sullivan <bos@lindenlab.com> | 2008-10-31 18:23:00 +0000 | 
| commit | c4d32870e1b3f25cfe128387316d375a196a5997 (patch) | |
| tree | 7cdd66885b407cbf3d9360f4d4a1543da8a953fc | |
| parent | d6d286775d9d08bc8db56c7673ced7058f53acc8 (diff) | |
Fix heinous traceback if commands are not found
| -rwxr-xr-x | indra/develop.py | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/indra/develop.py b/indra/develop.py index 928165e765..a987bb3da6 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -705,13 +705,14 @@ For example: develop.py configure -DSERVER:BOOL=OFF"""              print >> sys.stderr, 'Error: unknown subcommand', repr(cmd)              print >> sys.stderr, "(run 'develop.py --help' for help)"              sys.exit(1) -    except CommandError, err: -        print >> sys.stderr, 'Error:', err -        sys.exit(1)      except getopt.GetoptError, err:          print >> sys.stderr, 'Error with %r subcommand: %s' % (cmd, err)          sys.exit(1)  if __name__ == '__main__': -    main(sys.argv[1:]) +    try: +        main(sys.argv[1:]) +    except CommandError, err: +        print >> sys.stderr, 'Error:', err +        sys.exit(1) | 
