Traceback (most recent call last):


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

main()


 "mooc.py", line 62, in main

icourse163.start(args.url, config)


 "D:\Program\course-crawler\mooc\icourse163.py", line 175, in start

get_resource(course_info[0])


 "D:\Program\course-crawler\mooc\icourse163.py", line 134, in get_resource

params = {'nosKey': re.search('nosKey":"(.+?)"', text[3]).group(1),
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):


 "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner

self.run()


 "test.py", line 46, in run

self.do_sth()


 "/home/conrad/workspace/root_class.py", line 41, in wrapper_2

wrapped_func(*func_args, **func_kwargs)


 "/home/conrad/.local/lib/python3.7/site-packages/tenacity/__init__.py", line 292, in wrapped_f

return self.call(f, *args, **kw)


 "/home/conrad/.local/lib/python3.7/site-packages/tenacity/__init__.py", line 358, in call

do = self.iter(retry_state=retry_state)


 "/home/conrad/.local/lib/python3.7/site-packages/tenacity/__init__.py", line 328, in iter

return self.retry_error_callback(retry_state=retry_state)


 "/home/conrad/.local/lib/python3.7/site-packages/tenacity/compat.py", line 300, in wrapped_retry_error_callback

return fn(retry_state.outcome)


 "/home/conrad/workspace/root_class.py", line 28, in lastRetryHandler

return last_attempt.outcome.result()
AttributeError: 'Future' object has no attribute 'outcome'