Traceback (most recent call last):


 "D:\Git_Source\python_learning\weiboSpider\weibo_spider\spider.py", line 262, in start

self.write_user(self.user)


 "D:\Git_Source\python_learning\weiboSpider\weibo_spider\spider.py", line 110, in write_user

writer.write_user(user)


 "D:\Git_Source\python_learning\weiboSpider\weibo_spider\writer\txt_writer.py", line 29, in write_user

[v + '：' + str(self.user.__dict__[k]) for k, v in self.user_desc])


 "D:\Git_Source\python_learning\weiboSpider\weibo_spider\writer\txt_writer.py", line 29, in <listcomp>

[v + '：' + str(self.user.__dict__[k]) for k, v in self.user_desc])
AttributeError: 'NoneType' object has no attribute '__dict__'
Traceback (most recent call last):


 "test.py", line 25, in <module>

exit(main())


 "/path/package/lib/python3.6/site-packages/moto/core/models.py", line 71, in wrapper

result = func(*args, **kwargs)


 "test.py", line 16, in main

{"CidrIpv6": "2607:fb10::/32"}]}],


 "/path/package/lib/python3.6/site-packages/botocore/client.py", line 314, in _api_call

return self._make_api_call(operation_name, kwargs)


 "/path/package/lib/python3.6/site-packages/botocore/client.py", line 599, in _make_api_call

operation_model, request_dict)


 "/path/package/lib/python3.6/site-packages/botocore/endpoint.py", line 148, in make_request

return self._send_request(request_dict, operation_model)


 "/path/package/lib/python3.6/site-packages/botocore/endpoint.py", line 177, in _send_request

success_response, exception):


 "/path/package/lib/python3.6/site-packages/botocore/endpoint.py", line 273, in _needs_retry

caught_exception=caught_exception, request_dict=request_dict)


 "/path/package/lib/python3.6/site-packages/botocore/hooks.py", line 227, in emit

return self._emit(event_name, kwargs)


 "/path/package/lib/python3.6/site-packages/botocore/hooks.py", line 210, in _emit

response = handler(**kwargs)


 "/path/package/lib/python3.6/site-packages/botocore/retryhandler.py", line 183, in __call__

if self._checker(attempts, response, caught_exception):


 "/path/package/lib/python3.6/site-packages/botocore/retryhandler.py", line 251, in __call__

caught_exception)


 "/path/package/lib/python3.6/site-packages/botocore/retryhandler.py", line 269, in _should_retry

return self._checker(attempt_number, response, caught_exception)


 "/path/package/lib/python3.6/site-packages/botocore/retryhandler.py", line 317, in __call__

caught_exception)


 "/path/package/lib/python3.6/site-packages/botocore/retryhandler.py", line 223, in __call__

attempt_number, caught_exception)


 "/path/package/lib/python3.6/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception

raise caught_exception


 "/path/package/lib/python3.6/site-packages/botocore/endpoint.py", line 222, in _get_response

proxies=self.proxies, timeout=self.timeout)


 "/path/package/lib/python3.6/site-packages/botocore/vendored/requests/sessions.py", line 573, in send

r = adapter.send(request, **kwargs)


 "/path/package/lib/python3.6/site-packages/responses.py", line 572, in unbound_on_send

return self._on_request(adapter, request, *a, **kwargs)


 "/path/package/lib/python3.6/site-packages/responses.py", line 548, in _on_request

match.get_response(request), )


 "/path/package/lib/python3.6/site-packages/moto/core/models.py", line 137, in get_response

result = self.callback(request)


 "/path/package/lib/python3.6/site-packages/moto/core/utils.py", line 172, in __call__

result = self.callback(request, request.url, request.headers)


 "/path/package/lib/python3.6/site-packages/moto/core/responses.py", line 116, in dispatch

return cls()._dispatch(*args, **kwargs)


 "/path/package/lib/python3.6/site-packages/moto/core/responses.py", line 199, in _dispatch

return self.call_action()


 "/path/package/lib/python3.6/site-packages/moto/core/responses.py", line 273, in call_action

response = method()


 "/path/package/lib/python3.6/site-packages/moto/ec2/responses/security_groups.py", line 67, in authorize_security_group_ingress

self.ec2_backend.authorize_security_group_ingress(*args)


 "/path/package/lib/python3.6/site-packages/moto/ec2/models.py", line 1562, in authorize_security_group_ingress

group, group.get_number_of_ingress_rules(),
AttributeError: 'NoneType' object has no attribute 'get_number_of_ingress_rules'
