Permalink
Browse files

Update scraper.py

Fixed None type
  • Loading branch information...
nixed committed Aug 24, 2015
1 parent cc9c3e8 commit 41922a19156d9741791e5412d423e25e441377a2
Showing with 2 additions and 0 deletions.
  1. +2 −0 scraper.py
View
@@ -66,6 +66,8 @@ def get_yaml_url(url):
return data
def parse_infobox_text(text):
if text is None:
return
text = text.split('|')
text = text[1:] #everything before the first pipe is the infobox declaration
new_list = [text[0]]

0 comments on commit 41922a1

Please sign in to comment.