Open atatat123 opened 2 hours ago
This is the full error:
ERROR [bot] (main.py:error_handler:38) Exception while handling an update: Traceback (most recent call last):
File "/home/atnt/.local/lib/python3.10/site-packages/telegram/ext/utils/promise.py", line 96, in run self._result = self.pooled_function(*self.args, **self.kwargs)
File "/home/atnt/python-ref-bot/Telegram-Referral-Bot/src/bot/modules/helper_funcs/decorators.py", line 18, in command_func return func(update, context, *args, **kwargs) | | | | -> {} | | | -> () | | -> <telegram.ext.callbackcontext.CallbackContext object at 0x7f6120169620> | -> <telegram.update.Update object at 0x7f61205c0f40> -> <function start at 0x7f61205e4790>
File "/home/atnt/python-ref-bot/Telegram-Referral-Bot/src/bot/modules/start.py", line 20, in start valid_user(update,context) | | -> <telegram.ext.callbackcontext.CallbackContext object at 0x7f6120169620> | -> <telegram.update.Update object at 0x7f61205c0f40> -> <function valid_user at 0x7f61205e4a60>
File "/home/atnt/python-ref-bot/Telegram-Referral-Bot/src/bot/modules/helper_funcs/decorators.py", line 18, in command_func return func(update, context, *args, **kwargs) | | | | -> {} | | | -> () | | -> <telegram.ext.callbackcontext.CallbackContext object at 0x7f6120169620> | -> <telegram.update.Update object at 0x7f61205c0f40> -> <function valid_user at 0x7f61205e49d0>
File "/home/atnt/python-ref-bot/Telegram-Referral-Bot/src/bot/modules/helper_funcs/decorators.py", line 46, in command_func if get_contest() == True: -> <function get_contest at 0x7f612055f400>
File "/home/atnt/python-ref-bot/Telegram-Referral-Bot/src/bot/modules/sql/settings_sql.py", line 39, in get_contest return contest.contest -> None
AttributeError: 'NoneType' object has no attribute 'contest'
Could you help me out please?
Using /startadmin or /start or other commands gives me this error. Would really like to get it to work. Thanks alot in advance