与http.client.BadStatusLine问题:“”(Issues with http.c

2019-10-22 08:32发布

我有一个使用Dweepy(一个Python模块使用dweet.io服务)程序,它无法运行由于某种原因流功能(listen_for_dweets_from)。

码:

    collabIncomingThread = threading.Thread(None, self.listenForCollabCommands, daemon=True)
    collabIncomingThread.start()

    def listenForCollabCommands(self):
        print("Getting dweets...")
        for dweet in dweepy.listen_for_dweets_from('reggie-next-codes-' + shareid):
            print(dweet)
            contentcourse = dweet['content']
            code = contentcourse['code']
            #sender = contentcourse['player']
            print("IN: " + code)
            #if sender != myname:
            mainWindow.HandleCollaborationLang(str(code))

当这个运行时,它最终会打印出这个东西: http://pastebin.com/MJdRriyH (粘贴是无限的,我不能格式化所有SO)

我敢肯定,它与线程的东西做的,但我不知道。 有人知道吗?

文章来源: Issues with http.client.BadStatusLine: ''