[or-cvs] when you get an error, exit

arma at seul.org arma at seul.org
Mon Jul 11 20:06:27 UTC 2005


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)



More information about the tor-commits mailing list