We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
OK failing since at least 2018-05-06
OK has been failing since 2018-05-06

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


```
  /opt/openstates/venv-pupa/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
01:03:53 CRITICAL pupa: Session(s) 2019 Regular Session were reported by Oklahoma.get_session_list() but were not found in Oklahoma.legislative_sessions or Oklahoma.ignored_scraped_sessions.
loaded Open States pupa settings...
ok (scrape, import)
  bills: {}
  people: {}
  committees: {}
```

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


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `openstates/ok/__init__.py`
Content:
```
1 from pupa.scrape import Jurisdiction, Organization
2 from .people import OKPersonScraper
3 from .committees import OKCommitteeScraper
4 # from .events import OKEventScraper
5 from .bills import OKBillScraper
6 
7 
8 class Oklahoma(Jurisdiction):
9     division_id = "ocd-division/country:us/state:ok"
10     classification = "government"
11     name = "Oklahoma"
12     url = "http://www.oklegislature.gov/"
13     scrapers = {
14         'people': OKPersonScraper,
15         'committees': OKCommitteeScraper,
16         # 'events': OKEventScraper,
17         'bills': OKBillScraper,
18     }
19     # Sessions are named on OK's website as "{odd year} regular session" until the even year,
20     # when all data rolls over. For example, even year sessions include all odd-year-session bills.
21     # We have opted to name sessions {odd-even} Regular Session and treat them as such.
22     # - If adding a new odd-year session, add a new entry and copy the biennium pattern as above
23     # - If adding an even-year session, all you'll need to do is:
24     #   - update the `_scraped_name`
25     #   - update the session slug in the Bill scraper
26     #   - ignore the odd-year session
27     legislative_sessions = [
28         {
29             "_scraped_name": "2012 Regular Session",
30             "identifier": "2011-2012",
31             "name": "2011-2012 Regular Session"
32         },
33         {
34             "_scraped_name": "2012 Special Session",
35             "identifier": "2012SS1",
36             "name": "2012 Special Session"
37         },
38         {
39             "_scraped_name": "2014 Regular Session",
40             "identifier": "2013-2014",
41             "name": "2013-2014 Regular Session"
42         },
43         {
44             "_scraped_name": "2013 Special Session",
45             "identifier": "2013SS1",
46             "name": "2013 Special Session"
47         },
48         {
49             "_scraped_name": "2016 Regular Session",
50             "identifier": "2015-2016",
51             "name": "2015-2016 Regular Session"
52         },
53         {
54             "_scraped_name": "2017 First Special Session",
55             "identifier": "2017SS1",
56             "name": "2017 First Special Session"
57         },
58         {
59             "_scraped_name": "2017 Second Special Session",
60             "identifier": "2017SS2",
61             "name": "2017 Second Special Session"
62         },
63         {
64             "_scraped_name": "2018 Regular Session",
65             "identifier": "2017-2018",
66             "name": "2017-2018 Regular Session",
67             "start_date": "2017-02-06",
68             "end_date": "2018-05-25",
69         },
70     ]
71     ignored_scraped_sessions = [
72         "2017 Regular Session",
73         "2015 Regular Session",
74         "2013 Regular Session",
75         "2011 Regular Session",
76         "2010 Regular Session",
77         "2009 Regular Session",
78         "2008 Regular Session",
79         "2007 Regular Session",
80         "2006 Second Special Session",
81         "2006 Regular Session",
82         "2005 Special Session",
83         "2005 Regular Session",
84         "2004 Special Session",
85         "2004 Regular Session",
86         "2003 Regular Session",
87         "2002 Regular Session",
88         "2001 Special Session",
89         "2001 Regular Session",
90         "2000 Regular Session",
91         "1999 Special Session",
92         "1999 Regular Session",
93         "1998 Regular Session",
94         "1997 Regular Session",
95         "1996 Regular Session",
96         "1995 Regular Session",
97         "1994 Second Special Session",
98         "1994 First Special Session",
99         "1994 Regular Session",
100         "1993 Regular Session"
101     ]
102 
103     def get_organizations(self):
104         legislature_name = "Oklahoma Legislature"
105         lower_chamber_name = "House"
106         lower_seats = 101
107         lower_title = "Senator"
108         upper_chamber_name = "Senate"
109         upper_seats = 48
110         upper_title = "Senator"
111 
112         legislature = Organization(name=legislature_name,
113                                    classification="legislature")
114         upper = Organization(upper_chamber_name, classification='upper',
115                              parent_id=legislature._id)
116         lower = Organization(lower_chamber_name, classification='lower',
117                              parent_id=legislature._id)
118 
119         for n in range(1, upper_seats + 1):
120             upper.add_post(
121                 label=str(n), role=upper_title,
122                 division_id='{}/sldu:{}'.format(self.division_id, n))
123         for n in range(1, lower_seats + 1):
124             lower.add_post(
125                 label=str(n), role=lower_title,
126                 division_id='{}/sldl:{}'.format(self.division_id, n))
127 
128         yield legislature
129         yield upper
130         yield lower
131 
132     def get_session_list(self):
133         from openstates.utils import url_xpath
134         sessions = url_xpath('http://webserver1.lsb.state.ok.us/WebApplication2/WebForm1.aspx',
135                              "//select[@name='cbxSession']/option/text()")
136         # OK Sometimes appends (Mainsys) to their session listings
137         sessions = [s.replace('(Mainsys)', '').strip() for s in sessions]
138         return sessions
139
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/openstates/ok/__init__.py b/openstates/ok/__init__.py
--- a/openstates/ok/__init__.py
+++ b/openstates/ok/__init__.py
@@ -69,6 +69,7 @@
         },
     ]
     ignored_scraped_sessions = [
+        "2019 Regular Session",
         "2017 Regular Session",
         "2015 Regular Session",
         "2013 Regular Session",

{"golden_diff": "diff --git a/openstates/ok/__init__.py b/openstates/ok/__init__.py\n--- a/openstates/ok/__init__.py\n+++ b/openstates/ok/__init__.py\n@@ -69,6 +69,7 @@\n         },\n     ]\n     ignored_scraped_sessions = [\n+        \"2019 Regular Session\",\n         \"2017 Regular Session\",\n         \"2015 Regular Session\",\n         \"2013 Regular Session\",\n", "issue": "OK failing since at least 2018-05-06\nOK has been failing since 2018-05-06\n\nBased on automated runs it appears that OK has not run successfully in 2 days (2018-05-06).\n\n\n```\n  /opt/openstates/venv-pupa/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use \"pip install psycopg2-binary\" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.\n  \"\"\")\n01:03:53 CRITICAL pupa: Session(s) 2019 Regular Session were reported by Oklahoma.get_session_list() but were not found in Oklahoma.legislative_sessions or Oklahoma.ignored_scraped_sessions.\nloaded Open States pupa settings...\nok (scrape, import)\n  bills: {}\n  people: {}\n  committees: {}\n```\n\nVisit http://bobsled.openstates.org for more info.\n\n", "before_files": [{"content": "from pupa.scrape import Jurisdiction, Organization\nfrom .people import OKPersonScraper\nfrom .committees import OKCommitteeScraper\n# from .events import OKEventScraper\nfrom .bills import OKBillScraper\n\n\nclass Oklahoma(Jurisdiction):\n    division_id = \"ocd-division/country:us/state:ok\"\n    classification = \"government\"\n    name = \"Oklahoma\"\n    url = \"http://www.oklegislature.gov/\"\n    scrapers = {\n        'people': OKPersonScraper,\n        'committees': OKCommitteeScraper,\n        # 'events': OKEventScraper,\n        'bills': OKBillScraper,\n    }\n    # Sessions are named on OK's website as \"{odd year} regular session\" until the even year,\n    # when all data rolls over. For example, even year sessions include all odd-year-session bills.\n    # We have opted to name sessions {odd-even} Regular Session and treat them as such.\n    # - If adding a new odd-year session, add a new entry and copy the biennium pattern as above\n    # - If adding an even-year session, all you'll need to do is:\n    #   - update the `_scraped_name`\n    #   - update the session slug in the Bill scraper\n    #   - ignore the odd-year session\n    legislative_sessions = [\n        {\n            \"_scraped_name\": \"2012 Regular Session\",\n            \"identifier\": \"2011-2012\",\n            \"name\": \"2011-2012 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2012 Special Session\",\n            \"identifier\": \"2012SS1\",\n            \"name\": \"2012 Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2014 Regular Session\",\n            \"identifier\": \"2013-2014\",\n            \"name\": \"2013-2014 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2013 Special Session\",\n            \"identifier\": \"2013SS1\",\n            \"name\": \"2013 Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2016 Regular Session\",\n            \"identifier\": \"2015-2016\",\n            \"name\": \"2015-2016 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2017 First Special Session\",\n            \"identifier\": \"2017SS1\",\n            \"name\": \"2017 First Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2017 Second Special Session\",\n            \"identifier\": \"2017SS2\",\n            \"name\": \"2017 Second Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2018 Regular Session\",\n            \"identifier\": \"2017-2018\",\n            \"name\": \"2017-2018 Regular Session\",\n            \"start_date\": \"2017-02-06\",\n            \"end_date\": \"2018-05-25\",\n        },\n    ]\n    ignored_scraped_sessions = [\n        \"2017 Regular Session\",\n        \"2015 Regular Session\",\n        \"2013 Regular Session\",\n        \"2011 Regular Session\",\n        \"2010 Regular Session\",\n        \"2009 Regular Session\",\n        \"2008 Regular Session\",\n        \"2007 Regular Session\",\n        \"2006 Second Special Session\",\n        \"2006 Regular Session\",\n        \"2005 Special Session\",\n        \"2005 Regular Session\",\n        \"2004 Special Session\",\n        \"2004 Regular Session\",\n        \"2003 Regular Session\",\n        \"2002 Regular Session\",\n        \"2001 Special Session\",\n        \"2001 Regular Session\",\n        \"2000 Regular Session\",\n        \"1999 Special Session\",\n        \"1999 Regular Session\",\n        \"1998 Regular Session\",\n        \"1997 Regular Session\",\n        \"1996 Regular Session\",\n        \"1995 Regular Session\",\n        \"1994 Second Special Session\",\n        \"1994 First Special Session\",\n        \"1994 Regular Session\",\n        \"1993 Regular Session\"\n    ]\n\n    def get_organizations(self):\n        legislature_name = \"Oklahoma Legislature\"\n        lower_chamber_name = \"House\"\n        lower_seats = 101\n        lower_title = \"Senator\"\n        upper_chamber_name = \"Senate\"\n        upper_seats = 48\n        upper_title = \"Senator\"\n\n        legislature = Organization(name=legislature_name,\n                                   classification=\"legislature\")\n        upper = Organization(upper_chamber_name, classification='upper',\n                             parent_id=legislature._id)\n        lower = Organization(lower_chamber_name, classification='lower',\n                             parent_id=legislature._id)\n\n        for n in range(1, upper_seats + 1):\n            upper.add_post(\n                label=str(n), role=upper_title,\n                division_id='{}/sldu:{}'.format(self.division_id, n))\n        for n in range(1, lower_seats + 1):\n            lower.add_post(\n                label=str(n), role=lower_title,\n                division_id='{}/sldl:{}'.format(self.division_id, n))\n\n        yield legislature\n        yield upper\n        yield lower\n\n    def get_session_list(self):\n        from openstates.utils import url_xpath\n        sessions = url_xpath('http://webserver1.lsb.state.ok.us/WebApplication2/WebForm1.aspx',\n                             \"//select[@name='cbxSession']/option/text()\")\n        # OK Sometimes appends (Mainsys) to their session listings\n        sessions = [s.replace('(Mainsys)', '').strip() for s in sessions]\n        return sessions\n", "path": "openstates/ok/__init__.py"}], "after_files": [{"content": "from pupa.scrape import Jurisdiction, Organization\nfrom .people import OKPersonScraper\nfrom .committees import OKCommitteeScraper\n# from .events import OKEventScraper\nfrom .bills import OKBillScraper\n\n\nclass Oklahoma(Jurisdiction):\n    division_id = \"ocd-division/country:us/state:ok\"\n    classification = \"government\"\n    name = \"Oklahoma\"\n    url = \"http://www.oklegislature.gov/\"\n    scrapers = {\n        'people': OKPersonScraper,\n        'committees': OKCommitteeScraper,\n        # 'events': OKEventScraper,\n        'bills': OKBillScraper,\n    }\n    # Sessions are named on OK's website as \"{odd year} regular session\" until the even year,\n    # when all data rolls over. For example, even year sessions include all odd-year-session bills.\n    # We have opted to name sessions {odd-even} Regular Session and treat them as such.\n    # - If adding a new odd-year session, add a new entry and copy the biennium pattern as above\n    # - If adding an even-year session, all you'll need to do is:\n    #   - update the `_scraped_name`\n    #   - update the session slug in the Bill scraper\n    #   - ignore the odd-year session\n    legislative_sessions = [\n        {\n            \"_scraped_name\": \"2012 Regular Session\",\n            \"identifier\": \"2011-2012\",\n            \"name\": \"2011-2012 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2012 Special Session\",\n            \"identifier\": \"2012SS1\",\n            \"name\": \"2012 Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2014 Regular Session\",\n            \"identifier\": \"2013-2014\",\n            \"name\": \"2013-2014 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2013 Special Session\",\n            \"identifier\": \"2013SS1\",\n            \"name\": \"2013 Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2016 Regular Session\",\n            \"identifier\": \"2015-2016\",\n            \"name\": \"2015-2016 Regular Session\"\n        },\n        {\n            \"_scraped_name\": \"2017 First Special Session\",\n            \"identifier\": \"2017SS1\",\n            \"name\": \"2017 First Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2017 Second Special Session\",\n            \"identifier\": \"2017SS2\",\n            \"name\": \"2017 Second Special Session\"\n        },\n        {\n            \"_scraped_name\": \"2018 Regular Session\",\n            \"identifier\": \"2017-2018\",\n            \"name\": \"2017-2018 Regular Session\",\n            \"start_date\": \"2017-02-06\",\n            \"end_date\": \"2018-05-25\",\n        },\n    ]\n    ignored_scraped_sessions = [\n        \"2019 Regular Session\",\n        \"2017 Regular Session\",\n        \"2015 Regular Session\",\n        \"2013 Regular Session\",\n        \"2011 Regular Session\",\n        \"2010 Regular Session\",\n        \"2009 Regular Session\",\n        \"2008 Regular Session\",\n        \"2007 Regular Session\",\n        \"2006 Second Special Session\",\n        \"2006 Regular Session\",\n        \"2005 Special Session\",\n        \"2005 Regular Session\",\n        \"2004 Special Session\",\n        \"2004 Regular Session\",\n        \"2003 Regular Session\",\n        \"2002 Regular Session\",\n        \"2001 Special Session\",\n        \"2001 Regular Session\",\n        \"2000 Regular Session\",\n        \"1999 Special Session\",\n        \"1999 Regular Session\",\n        \"1998 Regular Session\",\n        \"1997 Regular Session\",\n        \"1996 Regular Session\",\n        \"1995 Regular Session\",\n        \"1994 Second Special Session\",\n        \"1994 First Special Session\",\n        \"1994 Regular Session\",\n        \"1993 Regular Session\"\n    ]\n\n    def get_organizations(self):\n        legislature_name = \"Oklahoma Legislature\"\n        lower_chamber_name = \"House\"\n        lower_seats = 101\n        lower_title = \"Senator\"\n        upper_chamber_name = \"Senate\"\n        upper_seats = 48\n        upper_title = \"Senator\"\n\n        legislature = Organization(name=legislature_name,\n                                   classification=\"legislature\")\n        upper = Organization(upper_chamber_name, classification='upper',\n                             parent_id=legislature._id)\n        lower = Organization(lower_chamber_name, classification='lower',\n                             parent_id=legislature._id)\n\n        for n in range(1, upper_seats + 1):\n            upper.add_post(\n                label=str(n), role=upper_title,\n                division_id='{}/sldu:{}'.format(self.division_id, n))\n        for n in range(1, lower_seats + 1):\n            lower.add_post(\n                label=str(n), role=lower_title,\n                division_id='{}/sldl:{}'.format(self.division_id, n))\n\n        yield legislature\n        yield upper\n        yield lower\n\n    def get_session_list(self):\n        from openstates.utils import url_xpath\n        sessions = url_xpath('http://webserver1.lsb.state.ok.us/WebApplication2/WebForm1.aspx',\n                             \"//select[@name='cbxSession']/option/text()\")\n        # OK Sometimes appends (Mainsys) to their session listings\n        sessions = [s.replace('(Mainsys)', '').strip() for s in sessions]\n        return sessions\n", "path": "openstates/ok/__init__.py"}]}