Repository: openstates/openstates-scrapers

Issue:
MO failing since at least 2018-05-24
MO has been failing since 2018-05-24

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


```
  06:09:50 INFO billy: Save committee on Government Oversight,  Standing
06:09:50 INFO billy: Save committee on Tax Policy, Statutory
06:09:50 INFO billy: Save committee on Litigation Reform,  Standing
06:09:50 INFO billy: Save committee Rules - Legislative Oversight, Standing
06:09:50 INFO billy: Save committee Investigative on Oversight,  Standing
06:09:50 INFO billy: Save committee Agriculture Policy, Standing
06:09:50 INFO billy: Save committee Transportation, Infrastructure and Public Safety
06:09:50 INFO billy: Save committee Agriculture, Food Production, and Outdoor Resources
06:09:50 INFO billy: Save committee Professional Registration
06:09:50 INFO billy: Save committee on Employment Security,  Standing
06:09:50 INFO billy: Save committee Fiscal Oversight
06:09:50 INFO billy: Save committee Workforce Development, Standing
06:09:50 INFO billy: Save committee General Laws, Standing
06:09:50 INFO billy: Save committee Subcommittee on Appropriations - Public Safety, Corrections, Transportation, and Revenue, Subcommittee
06:09:50 INFO billy: Save committee Subcommittee on Mass Transit Security, Subcommittee
06:09:50 INFO billy: Save committee Subcommittee on Second Amendment Preservation, Subcommittee
06:09:50 INFO billy: Save committee on Homeland Security,  Standing
06:09:50 INFO billy: Save committee Ways and Means
06:09:50 INFO billy: Save committee Judiciary, Standing
06:09:50 INFO billy: Save committee Subcommittee on Ports, Subcommittee
06:09:50 INFO billy: Save committee Corrections and Public Institutions, Standing
06:09:50 INFO billy: Save bill lower 2018S1: HR 2
06:09:50 WARNING billy: Value u'2018S1' for field '<obj>.session' is not in the enumeration: ['2012', '2013', '2014', '2015', '2016', '2017', '2017S1', '2017S2', '2018']
06:09:50 INFO billy: Save bill lower 2018S1: HR 1
06:09:50 WARNING billy: Value u'2018S1' for field '<obj>.session' is not in the enumeration: ['2012', '2013', '2014', '2015', '2016', '2017', '2017S1', '2017S2', '2018']
06:09:50 INFO billy: Save vote 2018S1 lower: HR 2 'Reported Do Pass (H) - '
06:09:50 WARNING billy: Value None for field '<obj>.yes_count' is not of type integer
06:09:52 INFO billy: billy-update abbr=mo
    actions=import,report
    types=bills,legislators,votes,committees,alldata
    sessions=2018
    terms=2017-2018
06:09:52 INFO billy: Finished importing 194 legislator files.
06:09:53 INFO billy: imported 1 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: 2018S1
```

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



Discussion:

Resolving patch:
diff --git a/billy_metadata/mo.py b/billy_metadata/mo.py
--- a/billy_metadata/mo.py
+++ b/billy_metadata/mo.py
@@ -37,7 +37,7 @@
         },
         {
             'name': '2017-2018',
-            'sessions': ['2017', '2017S1', '2017S2', '2018'],
+            'sessions': ['2017', '2017S1', '2017S2', '2018', '2018S1'],
             'start_year': 2017,
             'end_year': 2018,
         },
@@ -98,7 +98,7 @@
             'type': 'primary',
             'display_name': '2018 Regular Session',
         },
-        '2018S2': {
+        '2018S1': {
             'type': 'special',
             'display_name': '2018 First Extraordinary Session',
         },


Test patch: