Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Successfully connected...
- {'VERSION()': '5.5.23'}
- Cause exception while process update id=742053236 by bot id=6871058034
- Error: Already closed
- Traceback (most recent call last):
- File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 38, in user_exist
- cur.execute(f"SELECT * FROM 'users' WHERE 'user_id' = ({message});")
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 153, in execute
- result = self._query(query)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 322, in _query
- conn.query(q)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 557, in query
- self._execute_command(COMMAND.COM_QUERY, sql)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 840, in _execute_command
- raise err.InterfaceError(0, "")
- pymysql.err.InterfaceError: (0, '')
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 308, in _process_update
- response = await self.feed_update(bot, update, **kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 157, in feed_update
- response = await self.update.wrap_outer_middleware(
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\error.py", line 25, in __call__
- return await handler(event, data)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\user_context.py", line 27, in __call__
- return await handler(event, data)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\fsm\middleware.py", line 41, in __call__
- return await handler(event, data)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
- return await wrapped_inner(event, kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
- return await wrapped()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 275, in _listen_update
- return await self.propagate_event(update_type=update_type, event=event, **kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 116, in propagate_event
- return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 111, in _wrapped
- return await self._propagate_event(
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 136, in _propagate_event
- response = await observer.trigger(event, **kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
- return await wrapped_inner(event, kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
- return await wrapped()
- File "c:\Users\lipuha\Desktop\TG_Bot\main.py", line 25, in start
- if(not user_exist(message.from_user.id)):
- File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 39, in user_exist
- con.commit()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 365, in __exit__
- self.close()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 409, in close
- raise err.Error("Already closed")
- pymysql.err.Error: Already closed
- Cause exception while process update id=742053237 by bot id=6871058034
- Error: Already closed
- Traceback (most recent call last):
- File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 38, in user_exist
- cur.execute(f"SELECT * FROM 'users' WHERE 'user_id' = ({message});")
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 153, in execute
- result = self._query(query)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 322, in _query
- conn.query(q)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 557, in query
- self._execute_command(COMMAND.COM_QUERY, sql)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 840, in _execute_command
- raise err.InterfaceError(0, "")
- pymysql.err.InterfaceError: (0, '')
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 308, in _process_update
- response = await self.feed_update(bot, update, **kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 157, in feed_update
- response = await self.update.wrap_outer_middleware(
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\error.py", line 25, in __call__
- return await handler(event, data)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\user_context.py", line 27, in __call__
- return await handler(event, data)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\fsm\middleware.py", line 41, in __call__
- return await handler(event, data)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
- return await wrapped_inner(event, kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
- return await wrapped()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 275, in _listen_update
- return await self.propagate_event(update_type=update_type, event=event, **kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 116, in propagate_event
- return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 111, in _wrapped
- return await self._propagate_event(
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 136, in _propagate_event
- response = await observer.trigger(event, **kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
- return await wrapped_inner(event, kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
- return await wrapped()
- File "c:\Users\lipuha\Desktop\TG_Bot\main.py", line 25, in start
- if(not user_exist(message.from_user.id)):
- File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 39, in user_exist
- return await wrapped_inner(event, kwargs)
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
- return await wrapped()
- File "c:\Users\lipuha\Desktop\TG_Bot\main.py", line 25, in start
- if(not user_exist(message.from_user.id)):
- File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 39, in user_exist
- con.commit()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 365, in __exit__
- self.close()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 409, in close
- con.commit()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 365, in __exit__
- self.close()
- File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 409, in close
- raise err.Error("Already closed")
- pymysql.err.Error: Already closed
Advertisement
Add Comment
Please, Sign In to add comment