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

最后一步报错 #3

Open
fu-jw opened this issue Dec 15, 2024 · 1 comment
Open

最后一步报错 #3

fu-jw opened this issue Dec 15, 2024 · 1 comment

Comments

@fu-jw
Copy link

fu-jw commented Dec 15, 2024

在绑定账号时的最后一步,写数据库时报错,提示语法错误

具体报错:

2024-12-15 09:32:42,887 - telegram.ext.Application - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/root/Nezha-Telegram-Bot/venv/lib/python3.8/site-packages/telegram/ext/_application.py", line 1124, in process_update
    await coroutine
  File "/root/Nezha-Telegram-Bot/venv/lib/python3.8/site-packages/telegram/ext/_conversationhandler.py", line 825, in handle_update
    new_state: object = await handler.handle_update(
  File "/root/Nezha-Telegram-Bot/venv/lib/python3.8/site-packages/telegram/ext/_handler.py", line 141, in handle_update
    return await self.callback(update, context)
  File "bot.py", line 149, in bind_alias
    await db.add_user(telegram_id, username, password, dashboard_url, alias)
  File "/root/Nezha-Telegram-Bot/database.py", line 46, in add_user
    cursor = await db.execute('''
  File "/root/Nezha-Telegram-Bot/venv/lib/python3.8/site-packages/aiosqlite/core.py", line 190, in execute
    cursor = await self._execute(self._conn.execute, sql, parameters)
  File "/root/Nezha-Telegram-Bot/venv/lib/python3.8/site-packages/aiosqlite/core.py", line 133, in _execute
    return await future
  File "/root/Nezha-Telegram-Bot/venv/lib/python3.8/site-packages/aiosqlite/core.py", line 106, in run
    result = function()
sqlite3.OperationalError: near "RETURNING": syntax error
@cantoblanco
Copy link
Member

#4 此PR已修复此问题

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

2 participants