Changeset f54e8e4


Ignore:
Timestamp:
Apr 21, 2010 1:51:08 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
b4b19c7
Parents:
eda00e1
Message:

Error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    reda00e1 rf54e8e4  
    18281828        'terminate_segment': terminate_segment(),\
    18291829    }
    1830 
    1831 operation = cmds.get(sys.argv[1], None)
     1830if len(sys.argv) > 1:
     1831    operation = cmds.get(sys.argv[1], None)
     1832else:
     1833    sys.exit("first argument must be one of " + ",".join(cmds.keys()))
     1834
    18321835if operation:
    18331836    del sys.argv[1]
Note: See TracChangeset for help on using the changeset viewer.