Traceback (most recent call last):


 "/usr/lib/python3.5/asyncio/tasks.py", line 92, in __del__


 "/usr/lib/python3.5/asyncio/base_events.py", line 1289, in call_exception_handler


 "/usr/lib/python3.5/logging/__init__.py", line 1309, in error


 "/usr/lib/python3.5/logging/__init__.py", line 1416, in _log


 "/usr/lib/python3.5/logging/__init__.py", line 1426, in handle


 "/usr/lib/python3.5/logging/__init__.py", line 1488, in callHandlers


 "/usr/lib/python3.5/logging/__init__.py", line 1426, in handle
[49/419]


 "/usr/lib/python3.5/logging/__init__.py", line 1488, in callHandlers


 "/usr/lib/python3.5/logging/__init__.py", line 856, in handle


 "/usr/lib/python3.5/logging/__init__.py", line 1048, in emit


 "/usr/lib/python3.5/logging/__init__.py", line 1038, in _open
NameError: name 'open' is not defined

Traceback (most recent call last):
 
 "c:\\bazarr\\bazarr\\get_episodes.py", line 46, in sync_episodes
  r.raise_for_status()
 
 "c:\\bazarr\\bazarr\\../libs/requests\\models.py", line 940, in raise_for_status
  raise HTTPError(http_error_msg, response=self)
HTTPError: 500 Server Error: Internal Server Error for url: http://127.0.0.1:8989/api/episode?seriesId=50&apikey=KEY
