Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Fix error happening when unlocking wallet and no network available
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoît HERVIER committed Apr 11, 2013
1 parent 2909c1e commit 6c052bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bitpurse/wallet.py
Expand Up @@ -784,7 +784,10 @@ def unlockWallet(self, passKey):
self._wallet.load_addresses(self._currentPassKey)
except ValueError:
raise WrongPassword('Wrong passphrase')
self._updateFiat()
try:
self._updateFiat()
except (urllib2.URLError, urllib2.HTTPError):
pass
self._balance = prettyPBitcoin(self._wallet.balance)
self._fiatBalance = u'%f %s (%f)' % ((self._wallet.balance
* self._fiatRate
Expand Down

0 comments on commit 6c052bd

Please sign in to comment.