From 9415fa996c6fcf8fff31465f9c76edf71342e3f3 Mon Sep 17 00:00:00 2001 From: gepd Date: Sat, 7 Oct 2017 16:50:41 -0300 Subject: [PATCH] bug fix checking python version --- beginning/pio_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginning/pio_install.py b/beginning/pio_install.py index 46b70a4..f1f7aaf 100644 --- a/beginning/pio_install.py +++ b/beginning/pio_install.py @@ -261,7 +261,7 @@ def check_python(self): if(out[0] == 0): self.version = sub(r'\D', '', out[1]) - if(int(self.version[0]) is 3): + if(self.version and int(self.version[0]) is 3): self.check_sym_link() # show error and link to download