Traceback (most recent call last):


 "C:\Users\el safer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\fbchat\_client.py", line 209, in login

user_agent=user_agent,


 "C:\Users\el safer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\fbchat\_state.py", line 149, in login

return cls.from_session(session=session)


 "C:\Users\el safer\AppData\Local\Programs\Python\Python37-32\lib\site-packages\fbchat\_state.py", line 186, in from_session

fb_dtsg = FB_DTSG_REGEX.search(r.text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Traceback (most recent call last):


 "/{anonPath}/venv/bin/cfn-lint", line 11, in <module>

sys.exit(main())


 "/{anonPath}/venv/lib/python3.6/site-packages/cfnlint/__main__.py", line 33, in main

args.override_spec, formatter))


 "/{anonPath}/venv/lib/python3.6/site-packages/cfnlint/core.py", line 53, in run_cli

matches = run_checks(filename, template, rules, regions)


 "/{anonPath}/venv/lib/python3.6/site-packages/cfnlint/core.py", line 312, in run_checks

matches.extend(runner.transform())


 "/{anonPath}/venv/lib/python3.6/site-packages/cfnlint/__init__.py", line 807, in transform

matches = transform.transform_template()


 "/{anonPath}/venv/lib/python3.6/site-packages/cfnlint/transform.py", line 106, in transform_template

sam_translator.translate(sam_template=self._template, parameter_values={})


 "/{anonPath}/venv/lib/python3.6/site-packages/samtranslator/translator/translator.py", line 57, in translate

deployment_preference_collection = DeploymentPreferenceCollection()


 "/{anonPath}/venv/lib/python3.6/site-packages/samtranslator/model/preferences/deployment_preference_collection.py", line 30, in __init__

self.codedeploy_iam_role = self._codedeploy_iam_role()


 "/{anonPath}/venv/lib/python3.6/site-packages/samtranslator/model/preferences/deployment_preference_collection.py", line 89, in _codedeploy_iam_role

ArnGenerator.generate_aws_managed_policy_arn('service-role/AWSCodeDeployRoleForLambda')


 "/{anonPath}/venv/lib/python3.6/site-packages/samtranslator/translator/arn_generator.py", line 22, in generate_aws_managed_policy_arn

return 'arn:{}:iam::aws:policy/{}'.format(ArnGenerator.get_partition_name(),


 "/{anonPath}/venv/lib/python3.6/site-packages/samtranslator/translator/arn_generator.py", line 44, in get_partition_name

region_string = region.lower()
AttributeError: 'NoneType' object has no attribute 'lower'
