Commit 3b919fea authored by Jim Tittsler's avatar Jim Tittsler

Fix syntax of partially applied fix.

parent 545480f5
......@@ -106,8 +106,8 @@ def make_partner_pages(we, partners):
partner_page = requests.get(partner['url'])
tree = html.fromstring(partner_page.text)
printname = tree.xpath('//h3/text()').strip()
printname = printname[0].strip if len(printname) > 0 else ''
printname = tree.xpath('//h3/text()')
printname = printname[0].strip() if len(printname) > 0 else ''
tagline = tree.xpath('//h5/text()')
tagline = tagline[0] if len(tagline) > 0 else ''
body = tree.xpath('//*[@id="main"]/div/div[2]/div')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment