Skip to content

Commit

Permalink
fix bug in Device init exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gpdionisio committed May 12, 2018
1 parent 57233f4 commit 2659dc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/hwdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()



Expand Down
2 changes: 1 addition & 1 deletion src/version.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"number": "0.0.9",
"tag": "g",
"tag": "h",
"comments": ["beta release"]
}

0 comments on commit 2659dc1

Please sign in to comment.