We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 123f944 commit 9349814Copy full SHA for 9349814
devopsdays.py
@@ -66,7 +66,10 @@ def parse_event(url):
66
else:
67
raise ValueError(f'Unable to find end date in {url}')
68
69
- name_parts = root.select('.welcome-page')[0].string.split()
+ name_elm = root.select('.welcome-page')
70
+ if not name_elm:
71
+ name_elm = root.select('title')
72
+ name_parts = name_elm[0].string.split()
73
name_parts[0] = name_parts[0].capitalize()
74
name = ' '.join(name_parts)
75
linux_foundation.py
@@ -58,6 +58,9 @@ def fetch_smapply_json():
58
59
def parse_smapply_json():
60
for data in fetch_smapply_json():
61
+ if not data['startdate']:
62
+ # Malformed data.
63
+ continue
64
yield {
65
'Conference Name': data['name'],
'CFP Start Date': dateparser.parse(data['startdate']).astimezone(pytz.utc).date(),
0 commit comments