```Traceback (most recent call last):


 "/usr/local/bin/sam", line 11, in <module>

load_entry_point('aws-sam-cli==0.47.0', 'console_scripts', 'sam')()


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 782, in main

rv = self.invoke(ctx)


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/decorators.py", line 73, in new_func

return ctx.invoke(f, obj, *args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/lib/telemetry/metrics.py", line 96, in wrapped

raise exception
# pylint: disable=raising-bad-type


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/lib/telemetry/metrics.py", line 62, in wrapped

return_value = func(*args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/commands/validate/validate.py", line 27, in cli

do_cli(ctx, template_file)
# pragma: no cover


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/commands/validate/validate.py", line 47, in do_cli

validator.is_valid()


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/commands/validate/lib/sam_template_validator.py", line 60, in is_valid

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


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samtranslator/translator/translator.py", line 88, in translate

sam_parameter_values.add_pseudo_parameter_values()


 "/usr/local/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samtranslator/sdk/parameter.py", line 73, in add_pseudo_parameter_values

if region.startswith("cn-"):
AttributeError: 'NoneType' object has no attribute 'startswith'

Traceback (most recent call last):

 "/usr/local/lib/python3.4/dist-packages/IPython/html/tests/test_nbextensions.py", line 67, in setUp
touch(fullpath)

 "/usr/local/lib/python3.4/dist-packages/IPython/html/tests/test_nbextensions.py", line 39, in touch
open(file, 'a').close()UnicodeEncodeError: 'latin-1' codec can't encode character '\u0192' in position 17: ordinal not in range(256)