version 1.2, 2015/01/30 04:10:33
|
version 1.3, 2015/01/30 22:59:39
|
Line 16 WAYSTATION_USER = 'arta' |
|
Line 16 WAYSTATION_USER = 'arta' |
|
WAYSTATION_DOMAIN = 'sun.stanford.edu' | WAYSTATION_DOMAIN = 'sun.stanford.edu' |
| |
RV_SUCCESS = 0 | RV_SUCCESS = 0 |
RV_ERROR_MAIL = -1 |
RV_ERROR_MAIL = 1 |
|
RV_ERROR_ARGS = 2 |
| |
# This class changes the current working directory, and restores the original working directory when | # This class changes the current working directory, and restores the original working directory when |
# the context is left. | # the context is left. |
|
|
msg = exc.args[1] | msg = exc.args[1] |
| |
if etype == 'CmdlParser-ArgUnrecognized' or etype == 'CmdlParser-ArgBadformat' or etype == 'CmdlParser': | if etype == 'CmdlParser-ArgUnrecognized' or etype == 'CmdlParser-ArgBadformat' or etype == 'CmdlParser': |
raise Exception('getArgs', 'Unable to parse command-line arguments.') |
raise Exception('getArgs', 'Unable to parse command-line arguments.', RV_ERROR_ARGS) |
else: | else: |
raise # Re-raise. | raise # Re-raise. |
| |