Repository: openstates/openstates-scrapers

Issue:
LA failing since at least 2018-05-23
LA has been failing since 2018-05-23

Based on automated runs it appears that LA has not run successfully in 2 days (2018-05-23).


```
  06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill upper 2018 2nd Extraordinary Session: SR7
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill upper 2018 2nd Extraordinary Session: SCR2
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill lower 2018 2nd Extraordinary Session: HR11
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill lower 2018 2nd Extraordinary Session: HR8
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill lower 2018 2nd Extraordinary Session: HB8
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill lower 2018 2nd Extraordinary Session: HB9
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill upper 2018 2nd Extraordinary Session: SR8
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill lower 2018 2nd Extraordinary Session: HR1
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill lower 2018 2nd Extraordinary Session: HB13
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill upper 2018 2nd Extraordinary Session: SB14
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save bill lower 2018 2nd Extraordinary Session: HR10
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save vote 2018 2nd Extraordinary Session upper: SCR1 'ADOPT (#5)'
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:30 INFO billy: Save vote 2018 2nd Extraordinary Session upper: SCR2 'ADOPT (#6)'
06:11:30 WARNING billy: Value u'2018 2nd Extraordinary Session' for field '<obj>.session' is not in the enumeration: ['2009', '2010', '2011 1st Extraordinary Session', '2011', '2012', '2013', '2014', '2015', '2016', '2016 1st Extraordinary Session', '2016 2nd Extraordinary Session', '2017', '2017 1st Extraordinary Session', '2017 2nd Extraordinary Session', '2018 1st Extraordinary Session', '2018']
06:11:32 INFO billy: billy-update abbr=la
    actions=import,report
    types=bills,legislators,votes,committees,alldata,events
    sessions=2018
    terms=2016-2019
06:11:32 INFO billy: Finished importing 143 legislator files.
06:11:33 INFO billy: imported 2 vote files
Traceback (most recent call last):
  File "/opt/openstates/venv-billy//bin/billy-update", line 11, in <module>
    load_entry_point('billy', 'console_scripts', 'billy-update')()
  File "/opt/openstates/venv-billy/src/billy/billy/bin/update.py", line 413, in main
    import_report = _do_imports(abbrev, args)
  File "/opt/openstates/venv-billy/src/billy/billy/bin/update.py", line 152, in _do_imports
    report['bills'] = import_bills(abbrev, settings.BILLY_DATA_DIR)
  File "/opt/openstates/venv-billy/src/billy/billy/importers/bills.py", line 413, in import_bills
    ret = import_bill(data, votes, categorizer)
  File "/opt/openstates/venv-billy/src/billy/billy/importers/bills.py", line 231, in import_bill
    match_sponsor_ids(abbr, data)
  File "/opt/openstates/venv-billy/src/billy/billy/importers/bills.py", line 37, in match_sponsor_ids
    sponsor['name'])
  File "/opt/openstates/venv-billy/src/billy/billy/importers/names.py", line 26, in get_legislator_id
    raise Exception("bad session: " + session)
Exception: bad session: 2018 2nd Extraordinary Session
```

Visit http://bobsled.openstates.org for more info.



Discussion:

Resolving patch:
diff --git a/billy_metadata/la.py b/billy_metadata/la.py
--- a/billy_metadata/la.py
+++ b/billy_metadata/la.py
@@ -47,6 +47,7 @@
                 '2017 2nd Extraordinary Session',
                 '2018 1st Extraordinary Session',
                 '2018',
+                '2018 2nd Extraordinary Session',
             ],
         },
     ],
@@ -167,7 +168,7 @@
             '_id': '18RS',
             '_scraped_name': '2018 Regular Session',
         },
-        "2018 Second Extraordinary Session": {
+        "2018 2nd Extraordinary Session": {
             'type': 'special',
             'display_name': '2018, 2nd Extraordinary Session',
         },


Test patch: