You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread Thread-2:
Traceback (most recent call last):
File "D:\Python3.10.6\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "E:\pythonProject\checkID\tieba\cmd_handler.py", line 846, in run
asyncio.run(self.handler())
File "D:\Python3.10.6\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "D:\Python3.10.6\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "E:\pythonProject\checkID\tieba\cmd_handler.py", line 849, in handler
async with MyListener(self) as listener:
File "E:\pythonProject\checkID\tieba\cmd_handler.py", line 258, in __aexit__
await self.close()
File "E:\pythonProject\checkID\tieba\cmd_handler.py", line 246, in close
*[c.close() for c in itertools.chain.from_iterable(self.admins.values())], self.listener.close()
File "E:\pythonProject\checkID\tieba\cmd_handler.py", line 246, in <listcomp>
*[c.close() for c in itertools.chain.from_iterable(self.admins.values())], self.listener.close()
AttributeError: 'Client' object has no attribute 'close'. Did you mean: 'core'?
The text was updated successfully, but these errors were encountered:
代码如下
大体上是照着示例写的
报错如下
The text was updated successfully, but these errors were encountered: