Guest User

Untitled

a guest
Nov 4th, 2023
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Successfully connected...
  2. {'VERSION()': '5.5.23'}
  3. Cause exception while process update id=742053236 by bot id=6871058034
  4. Error: Already closed
  5. Traceback (most recent call last):
  6.   File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 38, in user_exist
  7.     cur.execute(f"SELECT * FROM 'users'  WHERE 'user_id' = ({message});")
  8.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 153, in execute
  9.     result = self._query(query)
  10.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 322, in _query
  11.     conn.query(q)
  12.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 557, in query
  13.     self._execute_command(COMMAND.COM_QUERY, sql)
  14.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 840, in _execute_command
  15.     raise err.InterfaceError(0, "")
  16. pymysql.err.InterfaceError: (0, '')
  17.  
  18. During handling of the above exception, another exception occurred:
  19.  
  20. Traceback (most recent call last):
  21.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 308, in _process_update      
  22.     response = await self.feed_update(bot, update, **kwargs)
  23.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 157, in feed_update
  24.     response = await self.update.wrap_outer_middleware(
  25.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\error.py", line 25, in __call__      
  26.     return await handler(event, data)
  27.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\user_context.py", line 27, in __call__
  28.     return await handler(event, data)
  29.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\fsm\middleware.py", line 41, in __call__
  30.     return await handler(event, data)
  31.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
  32.     return await wrapped_inner(event, kwargs)
  33.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
  34.     return await wrapped()
  35.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 275, in _listen_update
  36.     return await self.propagate_event(update_type=update_type, event=event, **kwargs)
  37.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 116, in propagate_event
  38.     return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
  39.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 111, in _wrapped
  40.     return await self._propagate_event(
  41.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 136, in _propagate_event
  42.     response = await observer.trigger(event, **kwargs)
  43.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
  44.     return await wrapped_inner(event, kwargs)
  45.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
  46.     return await wrapped()
  47.   File "c:\Users\lipuha\Desktop\TG_Bot\main.py", line 25, in start
  48.     if(not user_exist(message.from_user.id)):
  49.   File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 39, in user_exist
  50.     con.commit()
  51.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 365, in __exit__
  52.     self.close()
  53.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 409, in close
  54.     raise err.Error("Already closed")
  55. pymysql.err.Error: Already closed
  56. Cause exception while process update id=742053237 by bot id=6871058034
  57. Error: Already closed
  58. Traceback (most recent call last):
  59.   File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 38, in user_exist
  60.     cur.execute(f"SELECT * FROM 'users'  WHERE 'user_id' = ({message});")
  61.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 153, in execute
  62.     result = self._query(query)
  63.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\cursors.py", line 322, in _query
  64.     conn.query(q)
  65.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 557, in query
  66.     self._execute_command(COMMAND.COM_QUERY, sql)
  67.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 840, in _execute_command
  68.     raise err.InterfaceError(0, "")
  69. pymysql.err.InterfaceError: (0, '')
  70.  
  71. During handling of the above exception, another exception occurred:
  72.  
  73. Traceback (most recent call last):
  74.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 308, in _process_update
  75.     response = await self.feed_update(bot, update, **kwargs)
  76.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 157, in feed_update
  77.     response = await self.update.wrap_outer_middleware(
  78.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\error.py", line 25, in __call__
  79.     return await handler(event, data)
  80.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\middlewares\user_context.py", line 27, in __call__
  81.     return await handler(event, data)
  82.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\fsm\middleware.py", line 41, in __call__
  83.     return await handler(event, data)
  84.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
  85.     return await wrapped_inner(event, kwargs)
  86.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
  87.     return await wrapped()
  88.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\dispatcher.py", line 275, in _listen_update
  89.     return await self.propagate_event(update_type=update_type, event=event, **kwargs)
  90.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 116, in propagate_event
  91.     return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
  92.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 111, in _wrapped
  93.     return await self._propagate_event(
  94.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\router.py", line 136, in _propagate_event
  95.     response = await observer.trigger(event, **kwargs)
  96.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\telegram.py", line 120, in trigger
  97.     return await wrapped_inner(event, kwargs)
  98.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
  99.     return await wrapped()
  100.   File "c:\Users\lipuha\Desktop\TG_Bot\main.py", line 25, in start
  101.     if(not user_exist(message.from_user.id)):
  102.   File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 39, in user_exist
  103.     return await wrapped_inner(event, kwargs)
  104.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\aiogram\dispatcher\event\handler.py", line 42, in call
  105.     return await wrapped()
  106.   File "c:\Users\lipuha\Desktop\TG_Bot\main.py", line 25, in start
  107.     if(not user_exist(message.from_user.id)):
  108.   File "c:\Users\lipuha\Desktop\TG_Bot\db.py", line 39, in user_exist
  109.     con.commit()
  110.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 365, in __exit__
  111.     self.close()
  112.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 409, in close
  113.     con.commit()
  114.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 365, in __exit__
  115.     self.close()
  116.   File "C:\Users\lipuha\AppData\LPWKtcPjpxQzc26CxTtPFuQMNfm2RfEHfK\site-packages\pymysql\connections.py", line 409, in close
  117.     raise err.Error("Already closed")
  118. pymysql.err.Error: Already closed
Advertisement
Add Comment
Please, Sign In to add comment