无法解包不可迭代的NoneType对象

问题描述

嘿,有人可以帮我解决一些套接字问题吗 这是我运行此文件时得到的代码https://github.com/websitdev/discordBridge/blob/master/main.py

127.0.0.1
65432
server is running!
discord end is running!
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py",line 315,in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py",line 108,in run
    self._target(*self._args,**self._kwargs)
  File "/home/arydev/github/discordBridge/net.py",line 55,in net
    m=recv_msg(s)
  File "/home/arydev/github/discordBridge/net.py",line 30,in recv_msg
    reqest=server.recv(50)
OSError: [Errno 107] Transport endpoint is not connected
 * Serving Flask app "main" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production Wsgi server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Process Process-2:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py",**self._kwargs)
  File "/home/arydev/github/discordBridge/discord_bot/discord_bot.py",line 57,in discord_bot
    type_,group,msg=recv_msg()
TypeError: cannot unpack non-iterable nonetype object

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)