From 56a17786f0a6207087d6fd837ad048e280e34444 Mon Sep 17 00:00:00 2001 From: Phin <59180111+phin05@users.noreply.github.com> Date: Wed, 25 Apr 2018 17:42:16 +0530 Subject: [PATCH] Update discordRichPresencePlex.py --- discordRichPresencePlex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordRichPresencePlex.py b/discordRichPresencePlex.py index 9e579a7..935b5bf 100644 --- a/discordRichPresencePlex.py +++ b/discordRichPresencePlex.py @@ -65,7 +65,7 @@ class discordRichPresence: emptyProcessFilePath = tempfile.gettempdir() + "\\discordRichPresencePlex-emptyProcess.py" if (not os.path.exists(emptyProcessFilePath)): with open(emptyProcessFilePath, "w") as emptyProcessFile: - emptyProcessFile.write("import timetry:\twhile (True):\t\ttime.sleep(60)except:\tpass") + emptyProcessFile.write("import time\n\ntry:\n\twhile (True):\n\t\ttime.sleep(60)\nexcept:\n\tpass") self.process = subprocess.Popen(["python3" if isLinux else "pythonw", emptyProcessFilePath]) self.loop = asyncio.get_event_loop() if isLinux else asyncio.ProactorEventLoop() self.loop.run_until_complete(self.handshake())