summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-08-31 00:59:53 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2009-08-31 01:02:10 -0400
commit75b0cbb957510053760c1ae4f519cd6601040e96 (patch)
tree0db4207d99bb89835c7736334f06838c3dc1aefa /.gitignore
parent3f21f465880443b846c219675c1f4b50c5a568ac (diff)
Fix checking for missing fields in XML response
token = bug.find("token") self.token = token.text if token else None Was behaving strangely: apparently ElementTree can be logically false when non-None. Switch to the more explicit: self.token = None if token is None else token.text
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions