Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибки при смене 'branch' в type #1

Open
Shi1ir opened this issue Apr 10, 2023 · 0 comments
Open

Ошибки при смене 'branch' в type #1

Shi1ir opened this issue Apr 10, 2023 · 0 comments

Comments

@Shi1ir
Copy link

Shi1ir commented Apr 10, 2023

При попытке поменять в 'type' с 'branch' на любой другой параметр, например, 'street' (чтобы узнать по названию, какие улицы находятся рядом с отправленным местоположением), происходит ряд ошибок:
image

Traceback (most recent call last):
File "C:\Users\shirn\Downloads\bot_eat-main\bot_eat.py", line 62, in
bot.polling()
File "C:\Users\shirn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\telebot_init_.py", line 1043, in polling
self._threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout,
File "C:\Users\shirn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\telebot_init
.py", line 1121, in _threaded_polling
raise e
File "C:\Users\shirn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\telebot_init
.py", line 1073, in _threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\shirn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\telebot\util.py", line 150, in raise_exceptions
raise self.exception_info
File "C:\Users\shirn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\telebot\util.py", line 92, in run
task(*args, **kwargs)
File "C:\Users\shirn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\telebot_init
.py", line 6425, in _run_middlewares_and_handler
result = handler'function'
File "C:\Users\shirn\Downloads\bot_eat-main\bot_eat.py", line 49, in func_call
functions.func_search_gis(bot, call, point)
File "C:\Users\shirn\Downloads\bot_eat-main\functions.py", line 50, in func_search_gis
func_output_gis(bot, call)
File "C:\Users\shirn\Downloads\bot_eat-main\functions.py", line 80, in func_output_gis
address=result['result']['items'][0]['address_name'],
KeyError: 'address_name'

Process finished with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant