Show
Ignore:
Timestamp:
09/27/05 20:34:31 (19 years ago)
Author:
jerome
Message:

Ensure that human made errors (like incorrect command line options)
don't produce a traceback anymore. No need to frighten users with
such complete tracebacks and email reporting each time they mistype
some command.
Makes pykosd check more carefully the values of its command line options.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbanner

    r2344 r2512  
    4747    hasPIL = 1 
    4848     
    49 from pykota.tool import Tool, PyKotaToolError, crashed, N_ 
     49from pykota.tool import Tool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
    5050 
    5151__doc__ = N_("""pkbanner v%(__version__)s (c) %(__years__)s %(__author__)s 
     
    312312    except KeyboardInterrupt :         
    313313        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     314    except PyKotaCommandLineError, msg :     
     315        sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
    314316    except SystemExit :         
    315317        pass