chronopost: Do not set location to "None" if empty
This commit is contained in:
parent
21c0c85ddd
commit
856fe0802d
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class TrackPage(BasePage):
|
|||
continue
|
||||
|
||||
ev = Event(i)
|
||||
ev.location = unicode(tds[1].text)
|
||||
ev.location = unicode(tds[1].text) if tds[1].text else None
|
||||
ev.activity = unicode(tds[1].find('br').tail)
|
||||
if tds[-1].text is not None:
|
||||
ev.activity += ', ' + self.parser.tocleanstring(tds[-1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue