Fixed a submission failure for xml files missing abstract sections.
- Legacy-Id: 15933
This commit is contained in:
parent
3b50082904
commit
fc5dd02c27
|
@ -177,7 +177,7 @@ class SubmissionBaseUploadForm(forms.Form):
|
|||
self.title = self.xmlroot.findtext('front/title').strip()
|
||||
if type(self.title) is unicode:
|
||||
self.title = unidecode(self.title)
|
||||
self.abstract = self.xmlroot.findtext('front/abstract').strip()
|
||||
self.abstract = (self.xmlroot.findtext('front/abstract') or '').strip()
|
||||
if type(self.abstract) is unicode:
|
||||
self.abstract = unidecode(self.abstract)
|
||||
author_info = self.xmlroot.findall('front/author')
|
||||
|
|
Loading…
Reference in a new issue