incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1295375 - /incubator/tashi/trunk/src/tashi/client/tashi-client.py
Date Thu, 01 Mar 2012 02:01:20 GMT
Author: stroucki
Date: Thu Mar  1 02:01:19 2012
New Revision: 1295375

URL: http://svn.apache.org/viewvc?rev=1295375&view=rev
Log:
tashi-client: move conversion function out of try/except clause because it itself may raise
a different exception than what I want to guard against here

Modified:
    incubator/tashi/trunk/src/tashi/client/tashi-client.py

Modified: incubator/tashi/trunk/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/client/tashi-client.py?rev=1295375&r1=1295374&r2=1295375&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Thu Mar  1 02:01:19 2012
@@ -575,10 +575,11 @@ def main():
 						val = None
 						lookahead = args[0]
 						if not lookahead.startswith("--"):
-							val = conv(args.pop(0))
+							val = (args.pop(0)
 					except:
 						pass
 
+					val = conv(val)
 					if (val == None):
 						val = default()
 



Mime
View raw message