[gnome-keysign: 38/65] discover: avoid a deferred error when there is a problem with bluetooth



commit 7179152501e4cb553beffcdf72fd89270a8d5151
Author: RyuzakiKK <aasonykk gmail com>
Date:   Sun Aug 20 21:21:37 2017 +0200

    discover: avoid a deferred error when there is a problem with bluetooth

 keysign/discover.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/keysign/discover.py b/keysign/discover.py
index 78e5068..6a0ffb3 100644
--- a/keysign/discover.py
+++ b/keysign/discover.py
@@ -48,11 +48,11 @@ class Discover:
             if key_data:
                 # If we found the key
                 returnValue((key_data, success, message))
-        else:
-            key_data = None
-            success = False
-            message = ""
-            returnValue((key_data, success, message))
+
+        key_data = None
+        success = False
+        message = ""
+        returnValue((key_data, success, message))
 
     def stop(self):
         self.stopped = True


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]