Permalink
Browse files

IN: 2013 metadata

  • Loading branch information...
1 parent 7255f92 commit e0d8c56b33f1185c25b529392ab6d807d8da768d @twneale twneale committed Jan 3, 2013
Showing with 10 additions and 1 deletion.
  1. +6 −0 openstates/in/__init__.py
  2. +4 −1 openstates/in/legislators.py
@@ -13,6 +13,8 @@
terms=[
{'name': '2011-2012', 'start_year': 2011,
'end_year': 2012, 'sessions': ['2011', '2012']},
+ {'name': '2013-2014', 'start_year': 2013,
+ 'end_year': 2014, 'sessions': ['2013', '2014']},
],
session_details={
'2011': {'start_date': datetime.date(2011, 1, 5),
@@ -21,6 +23,10 @@
},
'2012': {'display_name': '2012 Regular Session',
'_scraped_name': '2012 Regular Session',},
+ '2013': {'display_name': '2013 Regular Session',
+ '_scraped_name': '2013 Regular Session',},
+ '2014': {'display_name': '2014 Regular Session',
+ '_scraped_name': '2014 Regular Session',},
},
feature_flags=['subjects', 'capitol_maps', 'influenceexplorer'],
capitol_maps=[
@@ -70,7 +70,10 @@ def scrape_upper_republican(self, chamber, term, href, page, party, leg):
about_url = profile.xpath('//a[contains(., "About Sen.")]/@href')[0]
about = self.urlopen(about_url)
- about = lxml.html.fromstring(about)
+ try:
+ about = lxml.html.fromstring(about)
+ except:
+ import ipdb;ipdb.set_trace()
about.make_links_absolute(about_url)
leg.add_source(about_url)

0 comments on commit e0d8c56

Please sign in to comment.