From 354bfb090fefa9577c36cf8fbb1127e0aaf6f3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 23 Jan 2013 17:12:01 +0100 Subject: [PATCH] Do not rise, but end the scope --- pronterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pronterface.py b/pronterface.py index add45e1..89536eb 100755 --- a/pronterface.py +++ b/pronterface.py @@ -1436,8 +1436,8 @@ class PronterWindow(MainWindow, pronsole.pronsole): print _("You might need to add yourself to the dialout group.") else: print e - # Kill the thread anyway - raise + # Kill the scope anyway + return self.statuscheck = True if port != self.settings.port: self.set("port", port)