main.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:LoLVRSpectate 作者: Fire-Proof 项目源码 文件源码
def run(self, *args, **kwargs):
        try:
            self.spectate = VRSpectate()
            self.spectate.run()
        except ProcessException as e:
            logging.exception(e)
            if "get pid from name" in str(e):
                self.error.emit("LoL client was not found")
            elif "ReadProcessMemory" in str(e):
                self.error.emit("Either the LoL client or this program is outdated")
            else:
                self.error.emit(str(e))
        except pywintypes.error as e:
            logging.exception(e)
            if "SetSecurityInfo" in str(e):
                self.error.emit("Unable to access the League of Legends client, you have to run LoLVRSpectate at the "
                                "same privilege level as the LoL client. \nEX. if the LoL client is running as admin "
                                "LoLVRSpectate also has to run as admin")
        except Exception as e:
            logging.exception(e)
            self.error.emit("Unknown error, please submit a bug report at https://github.com/Fire-Proof/LoLVRSpectate "
                            "(please include the LoLVRSpectate.log file)")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号