[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] when you get an error, exit
Update of /home/or/cvsroot/control/python
In directory moria:/tmp/cvs-serv9893
Modified Files:
TorExample.py
Log Message:
when you get an error, exit
Index: TorExample.py
===================================================================
RCS file: /home/or/cvsroot/control/python/TorExample.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- TorExample.py 11 Jul 2005 19:16:40 -0000 1.4
+++ TorExample.py 11 Jul 2005 20:06:24 -0000 1.5
@@ -33,7 +33,8 @@
def run():
if len(sys.argv)<2:
- print "No command given."
+ print "No command given. Finished."
+ return
cmd = sys.argv[1].replace("-","_")
del sys.argv[1]
fn = globals().get("run_"+cmd)