16 |
|
WAYSTATION_DOMAIN = 'sun.stanford.edu' |
17 |
|
|
18 |
|
RV_SUCCESS = 0 |
19 |
< |
RV_ERROR_MAIL = -1 |
19 |
> |
RV_ERROR_MAIL = 1 |
20 |
> |
RV_ERROR_ARGS = 2 |
21 |
|
|
22 |
|
# This class changes the current working directory, and restores the original working directory when |
23 |
|
# the context is left. |
78 |
|
msg = exc.args[1] |
79 |
|
|
80 |
|
if etype == 'CmdlParser-ArgUnrecognized' or etype == 'CmdlParser-ArgBadformat' or etype == 'CmdlParser': |
81 |
< |
raise Exception('getArgs', 'Unable to parse command-line arguments.') |
81 |
> |
raise Exception('getArgs', 'Unable to parse command-line arguments.', RV_ERROR_ARGS) |
82 |
|
else: |
83 |
|
raise # Re-raise. |
84 |
|
|