From a261e1f57d10bd146bb990ab3ae8914fcdd08937 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Sep 2017 19:26:33 +0530 Subject: [PATCH] Fix erro on python built without threading --- kitty/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kitty/main.py b/kitty/main.py index a0c99eccc..61187b200 100644 --- a/kitty/main.py +++ b/kitty/main.py @@ -258,7 +258,10 @@ def setup_profiling(args): def main(): - sys.setswitchinterval(1000.0) # we have only a single python thread + try: + sys.setswitchinterval(1000.0) # we have only a single python thread + except AttributeError: + pass # python compiled without threading if isosx: ensure_osx_locale() try: