Traceback (most recent call last):

 "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)

 "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals

 "/usr/local/lib/python2.7/dist-packages/premailer/__main__.py", line 133, in <module>
sys.exit(main(sys.argv[1:]))

 "/usr/local/lib/python2.7/dist-packages/premailer/__main__.py", line 128, in main
options.outfile.write(p.transform())UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 45: ordinal not in range(128)
Traceback (most recent call last):


 "/user_code/main.py", line 211, in call

main(request)


 "/user_code/main.py", line 203, in main

if handle_message(message):


 "/user_code/main.py", line 163, in handle_message

user = get_user_by_chat(message)


 "/user_code/main.py", line 147, in get_user_by_chat

user = [i for i in db.collection('users').where('telegramChatId', '==', str(message.chat.id)).limit(1).stream()]


 "/user_code/main.py", line 147, in <listcomp>

user = [i for i in db.collection('users').where('telegramChatId', '==', str(message.chat.id)).limit(1).stream()]


 "/env/local/lib/python3.7/site-packages/google/cloud/firestore_v1/query.py", line 854, in stream

parent_path, expected_prefix = self._parent._parent_info()


 "/env/local/lib/python3.7/site-packages/google/cloud/firestore_v1/collection.py", line 125, in _parent_info

(self._client._database_string, "documents")


 "/env/local/lib/python3.7/site-packages/google/cloud/firestore_v1/client.py", line 190, in _database_string

self.project, self._database


 "/env/local/lib/python3.7/site-packages/google/cloud/firestore_v1/gapic/firestore_client.py", line 105, in database_root_path

return google.api_core.path_template.expand(
AttributeError: module 'google.api_core' has no attribute 'path_template'
