~bnrubin/+junk/lpteam

« back to all changes in this revision

Viewing changes to lpteam.py

  • Committer: Benjamin Rubin
  • Date: 2009-12-17 15:09:57 UTC
  • Revision ID: bnrubin@ubuntu.com-20091217150957-r4elfycswnux3wio
- Use error.content as suggested by jml

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
def addmember(member,team):
15
15
    try:
16
16
        status = team.addMember(person=member,status="Approved")
 
17
        pass
17
18
    except HTTPError as error:
18
 
        print "Error: %s has occurred" % error
 
19
        print "Error: %s" % error.content
19
20
        sys.exit(1)
20
21
                                                                
21
22