diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-02-06 10:43:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-02-06 10:43:44 -0300 |
commit | 2b9a67e88f810a553b37b5db0672b72dc17e619e (patch) | |
tree | 2f685b8efa11c7ac2668bb908c2e80fff29aca50 | |
parent | cce7aa059e83afea0a2a08db94e919a3def49224 (diff) | |
download | tkinter-2b9a67e88f810a553b37b5db0672b72dc17e619e.tar.gz tkinter-2b9a67e88f810a553b37b5db0672b72dc17e619e.tar.bz2 tkinter-2b9a67e88f810a553b37b5db0672b72dc17e619e.tar.xz tkinter-2b9a67e88f810a553b37b5db0672b72dc17e619e.zip |
Windows being Windows
-rwxr-xr-x | __main__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/__main__.py b/__main__.py index 6bd4266..0e3e7ec 100755 --- a/__main__.py +++ b/__main__.py @@ -102,6 +102,13 @@ if pref["discord"]: err = traceback.format_exc().split("\n")[-2] _rpc = None print("Failed to load Discord RPC!\n%s" % err) + except FileNotFoundError: + if not sys.platform.startswith('win'): + raise + else: + err = traceback.format_exc().split("\n")[-2] + _rpc = None + print("Failed to load Discord RPC!\n%s" % err) ## Value may have changed if not pref["discord"]: |