electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 66cbd5bc6580436be90eb373f9a09c33cc6ef43a
parent 8cc21a6a00feaeab2c9d57d0b8e0b4858e612936
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 31 Mar 2015 09:40:53 +0200

OA_READY already checked in is_available

Diffstat:
Mplugins/openalias.py | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/plugins/openalias.py b/plugins/openalias.py @@ -93,11 +93,7 @@ class Plugin(BasePlugin): return self.win.previous_payto_e = url - if ('.' in url) and (not '<' in url) and (not ' ' in url): - if not OA_READY: # handle a failed DNSPython load - QMessageBox.warning(self.win, _('Error'), 'Could not load DNSPython libraries, please ensure they are available and/or Electrum has been built correctly', _('OK')) - return - else: + if not (('.' in url) and (not '<' in url) and (not ' ' in url)): return data = self.resolve(url) @@ -138,10 +134,6 @@ class Plugin(BasePlugin): except AttributeError: return False - if not OA_READY: # handle a failed DNSPython load - QMessageBox.warning(self.win, _('Error'), 'Could not load DNSPython libraries, please ensure they are available and/or Electrum has been built correctly', _('OK')) - return True - if not self.validate_dnssec(url): msgBox = QMessageBox() msgBox.setText(_('WARNING: the address ' + address + ' could not be validated via an additional security check, DNSSEC, and thus may not be correct.'))