Traceback (most recent call last):


 "mooc.py", line 87, in <module>

main()


 "mooc.py", line 66, in main

xuetangx.start(args.url, config, cookies)


 "C:\Users\why05\Downloads\Compressed\course-crawler-master_2\course-crawler-master\mooc\xuetangx.py", line 210, in start

get_content(courseware)


 "C:\Users\why05\Downloads\Compressed\course-crawler-master_2\course-crawler-master\mooc\xuetangx.py", line 70, in get_content

chapters = soup.find(id='accordion').find_all(class_='chapter')
AttributeError: 'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):


 "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step

result = coro.throw(exc)


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1023, in _event_to_service_call

yield from service_handler.func(service_call)


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/notify/__init__.py", line 136, in async_notify_message

yield from notify_service.async_send_message(**kwargs)


 "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup

value = future.result()


 "/usr/lib/python3.4/asyncio/futures.py", line 277, in result

raise self._exception


 "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

result = self.fn(*self.args, **self.kwargs)


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/notify/twitter.py", line 63, in send_message

media = data.get(ATTR_MEDIA)
AttributeError: 'NoneType' object has no attribute 'get'
