From 31dffe5e3a0f23991e49d483f5a3192d6827eb0d Mon Sep 17 00:00:00 2001
From: Berk Onat <b.onat@warwick.ac.uk>
Date: Wed, 13 Dec 2017 09:31:42 +0000
Subject: [PATCH] Fixed exception at subprocess call for tcl in setup.py

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 2118a77..b701eb0 100644
--- a/setup.py
+++ b/setup.py
@@ -94,7 +94,7 @@ def check_tcl_version():
     try:
         output = subprocess.check_output("echo \"puts \$tcl_version;exit 0\" | tclsh", shell=True)
         val = float(output)
-    except (TypeError,ValueError):
+    except subprocess.CalledProcessError:
         val = None
     return val
 
-- 
GitLab