Traceback (most recent call last):


 "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred

result = f(*args, **kw)


 "/usr/lib/python2.7/site-packages/pydispatch/robustapply.py", line 55, in robustApply

return receiver(*arguments, **named)


 "/usr/lib/python2.7/site-packages/scrapy/spidermiddlewares/offsite.py", line 65, in spider_opened

self.host_regex = self.get_host_regex(spider)


 "/usr/lib/python2.7/site-packages/scrapy/spidermiddlewares/offsite.py", line 58, in get_host_regex

if url_pattern.match(domain):
TypeError: expected string or buffer

Traceback (most recent call last):


 "C:\Users\drewr\Desktop\Python Projects\Starcraft 2 Bot\bot.py", line 131, in <module>

], realtime=False)


 "C:\Users\drewr\AppData\Roaming\Python\Python37\site-packages\sc2\main.py", line 187, in run_game

_host_game(map_settings, players, **kwargs)


 "C:\Python37\lib\asyncio\base_events.py", line 568, in run_until_complete

return future.result()


 "C:\Users\drewr\AppData\Roaming\Python\Python37\site-packages\sc2\main.py", line 109, in _host_game

async with SC2Process() as server:


 "C:\Users\drewr\AppData\Roaming\Python\Python37\site-packages\sc2\sc2process.py", line 57, in __aenter__

self._ws = await self._connect()


 "C:\Users\drewr\AppData\Roaming\Python\Python37\site-packages\sc2\sc2process.py", line 99, in _connect

ws = await websockets.connect(self.ws_url, timeout=120)


 "C:\Users\drewr\AppData\Roaming\Python\Python37\site-packages\websockets\client.py", line 397, in __await__

transport, protocol = yield from self._creating_connection
TypeError: cannot 'yield from' a coroutine object in a non-coroutine generator
