From 2659dc1fd8c17cc5f7012edcffd1d0009297fb2f Mon Sep 17 00:00:00 2001 From: gpdionisio Date: Sat, 12 May 2018 07:19:59 +0200 Subject: [PATCH] fix bug in Device init exception --- src/hwdevice.py | 3 ++- src/version.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hwdevice.py b/src/hwdevice.py index 34bc1aa..a896c75 100644 --- a/src/hwdevice.py +++ b/src/hwdevice.py @@ -58,7 +58,8 @@ def initDevice(self): err_msg = 'error Initializing Ledger' printException(getCallerName(), getFunctionName(), err_msg, e.args) self.initialized = False - self.dongle.close() + if hasattr(self, 'dongle'): + self.dongle.close() diff --git a/src/version.txt b/src/version.txt index 84d920c..2b7c848 100644 --- a/src/version.txt +++ b/src/version.txt @@ -1,5 +1,5 @@ { "number": "0.0.9", - "tag": "g", + "tag": "h", "comments": ["beta release"] } \ No newline at end of file