GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of jwiegley/git-issues
Description: A distributed issue tracking system based on Git repositories, written in Python
Homepage: http://www.newartisans.com/software.html
Clone URL: git://github.com/ktf/git-issues.git
Checks if `method()` is called with an unexisting argument.
ktf (author)
Thu Aug 07 10:28:56 -0700 2008
commit  ccd521d93a0b87eadc512817c8292e007f10d2b3
tree    95ef77609300cd3addb5ada95394d7a321bee2b5
parent  bf0368e2a8af927118e5457c58c0ec72bb0b3bae
...
1122
1123
1124
1125
1126
 
 
 
 
 
 
1127
1128
1129
...
1122
1123
1124
 
 
1125
1126
1127
1128
1129
1130
1131
1132
1133
0
@@ -1122,8 +1122,12 @@ if __name__ == '__main__':
0
 
0
             # jww (2008-05-13): Need to parse datetime, lists, and people
0
             method = getattr(issue, "set_" + args[1])
0
- method(args[2])
0
-
0
+ try:
0
+ method(args[2])
0
+ except IndexError,e:
0
+ print "Index error."
0
+ print args
0
+ sys.exit(1)
0
 ######################################################################
0
     elif command == "edit":
0
         if len(args) == 0:

Comments

    No one has commented yet.