~bnrubin/+junk/lpteam

« back to all changes in this revision

Viewing changes to lpteam.py

  • Committer: Benjamin Rubin
  • Date: 2009-12-08 19:13:06 UTC
  • Revision ID: bnrubin@ubuntu.com-20091208191306-sd74sthmkxh7lhb0
- Fix some spelling mistakes

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        parser.print_help()
19
19
        sys.exit(2)
20
20
    
21
 
    from launchpadlib.launchpad import Launchpad, STAGING_SERVICE_ROOT,EDGE_SERVICE_ROOT
 
21
    from launchpadlib.launchpad import Launchpad,STAGING_SERVICE_ROOT,EDGE_SERVICE_ROOT
22
22
    from launchpadlib.errors import HTTPError
23
23
    
24
24
    if options.staging:
41
41
        try:
42
42
            status = team.addMember(person=member,status="Approved")
43
43
        except HTTPError as error:
44
 
            print "Error: %s has occured" % error
 
44
            print "Error: %s has occurred" % error
45
45
            sys.exit(1)
46
46
    
47
47
    else:
51
51
            try:
52
52
                status = team.addMember(person=member,status="Approved")
53
53
            except HTTPError as error:
54
 
                print "Error: %s has occured" % error
 
54
                print "Error: %s has occurred" % error
55
55
                sys.exit(1)
56
56
    print 'Success!'                                                            
57
57
if __name__ == "__main__":