Skip to content

Commit

Permalink
Skip url if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
johanvdw committed Jan 7, 2025
1 parent 4527dc0 commit 5cc237c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion volunteers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ def create_from_xml(cls, xml, edition):
else:
task = cls(name=name, counter=counter, template=template, edition=edition)
task.description = xml.find('description').text
task.fosdem_url = xml.find('url').text
if xml.find('url'):
task.fosdem_url = xml.find('url').text
task.location = xml.find('location').text
day_offset = int(xml.find('day').text)
task.date = edition.start_date + datetime.timedelta(days=day_offset)
Expand Down

0 comments on commit 5cc237c

Please sign in to comment.