Closed
Description
We just got this exception when being used in a lambda since sys.stdin is None:
File \"/var/task/nameparser/config/__init__.py\", line 95, in add_with_encoding
encoding = encoding or sys.stdin.encoding or DEFAULT_ENCODING
AttributeError: 'NoneType' object has no attribute 'encoding'",
perhaps using stdout is better as it's less likely to not be available, or expanding the check for it being None