fix crash when parsing custom fields
This commit is contained in:
parent
c10199204f
commit
f5e55ca0f0
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ class NewIssuePage(BaseIssuePage):
|
||||||
if 'type' in div.attrib and div.attrib['type'] == 'hidden':
|
if 'type' in div.attrib and div.attrib['type'] == 'hidden':
|
||||||
continue
|
continue
|
||||||
label = self.document.xpath('//label[@for="%s"]' % div.attrib['id'])[0]
|
label = self.document.xpath('//label[@for="%s"]' % div.attrib['id'])[0]
|
||||||
yield label.text.strip(), div
|
yield self.parser.tocleanstring(label), div
|
||||||
|
|
||||||
def set_title(self, title):
|
def set_title(self, title):
|
||||||
self.browser['issue[subject]'] = title.encode('utf-8')
|
self.browser['issue[subject]'] = title.encode('utf-8')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue