Repository: openstates/openstates-scrapers

Issue:
NC failing since at least 2019-01-17
NC has been failing since 2019-01-17

Based on automated runs it appears that NC has not run successfully in 2 days (2019-01-17).


```
  04:01:15 INFO pupa: save jurisdiction North Carolina as jurisdiction_ocd-jurisdiction-country:us-state:nc-government.json
04:01:15 INFO pupa: save organization North Carolina General Assembly as organization_b3dbf630-1ad5-11e9-800b-0248545f5bb2.json
04:01:15 INFO pupa: save organization Executive Office of the Governor as organization_b3dbf8f6-1ad5-11e9-800b-0248545f5bb2.json
04:01:15 INFO pupa: save organization Senate as organization_b3dbfa90-1ad5-11e9-800b-0248545f5bb2.json
04:01:15 INFO pupa: save organization House as organization_b3dbfc0c-1ad5-11e9-800b-0248545f5bb2.json
04:01:15 INFO pupa: no session specified, using 2019
04:01:15 INFO scrapelib: GET - http://www.ncleg.net/gascripts/SimpleBillInquiry/displaybills.pl?Session=2019&tab=Chamber&Chamber=Senate
loaded Open States pupa settings...
nc (scrape, import)
  bills: {}
Traceback (most recent call last):
  File "/opt/**PGUSER**/venv-pupa//bin/pupa", line 11, in <module>
    load_entry_point('pupa', 'console_scripts', 'pupa')()
  File "/opt/**PGUSER**/venv-pupa/src/pupa/pupa/cli/__main__.py", line 68, in main
    subcommands[args.subcommand].handle(args, other)
  File "/opt/**PGUSER**/venv-pupa/src/pupa/pupa/cli/commands/update.py", line 278, in handle
    return self.do_handle(args, other, juris)
  File "/opt/**PGUSER**/venv-pupa/src/pupa/pupa/cli/commands/update.py", line 327, in do_handle
    report['scrape'] = self.do_scrape(juris, args, scrapers)
  File "/opt/**PGUSER**/venv-pupa/src/pupa/pupa/cli/commands/update.py", line 175, in do_scrape
    report[scraper_name] = scraper.do_scrape(**scrape_args)
  File "/opt/**PGUSER**/venv-pupa/src/pupa/pupa/scrape/base.py", line 112, in do_scrape
    for obj in self.scrape(**kwargs) or []:
  File "/opt/**PGUSER**/**PGUSER**/**PGUSER**/nc/bills.py", line 229, in scrape
    yield from self.scrape_chamber(chamber, session)
  File "/opt/**PGUSER**/**PGUSER**/**PGUSER**/nc/bills.py", line 236, in scrape_chamber
    data = self.get(url).text
  File "/opt/**PGUSER**/venv-pupa/lib/python3.6/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/**PGUSER**/venv-pupa/lib/python3.6/site-packages/scrapelib/__init__.py", line 292, in request
    raise HTTPError(resp)
scrapelib.HTTPError: 404 while retrieving https://www.ncleg.gov/gascripts/SimpleBillInquiry/displaybills.pl?Session=2019&tab=Chamber&Chamber=Senate
```

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



Discussion:
Fixed.

Resolving patch:
diff --git a/openstates/mn/__init__.py b/openstates/mn/__init__.py
--- a/openstates/mn/__init__.py
+++ b/openstates/mn/__init__.py
@@ -111,10 +111,18 @@ class Minnesota(Jurisdiction):
             '_scraped_name': '91st Legislature, 2019-2020',
             'classification': 'primary',
             'identifier': '2019-2020',
-            'name': '2019-2020Regular Session',
+            'name': '2019-2020 Regular Session',
             'start_date': '2019-01-08',
             'end_date': '2019-06-20'
         },
+        {
+            '_scraped_name': '91st Legislature, 2019 1st Special Session',
+            'classification': 'primary',
+            'identifier': '2019s1',
+            'name': '2019, First Special Session',
+            'start_date': '2019-05-24',
+            'end_date': '2019-05-29'
+        },
     ]
     ignored_scraped_sessions = [
         '85th Legislature, 2007-2008',
@@ -134,8 +142,6 @@ class Minnesota(Jurisdiction):
         '80th Legislature, 1997 1st Special Session',
         '79th Legislature, 1995-1996',
         '79th Legislature, 1995 1st Special Session',
-        '89th Legislature, 2015-2016',
-        '91st Legislature, 2019-2020',
     ]
 
     def get_organizations(self):
diff --git a/openstates/mn/bills.py b/openstates/mn/bills.py
--- a/openstates/mn/bills.py
+++ b/openstates/mn/bills.py
@@ -45,7 +45,8 @@
     '2015s1': '1892015',
     '2017-2018': '0902017',
     '2017s1': '1902017',
-    '2019-2020': '0912019'
+    '2019-2020': '0912019',
+    '2019s1': '1912019',
 }
 
 


Test patch: