From 66cbd5bc6580436be90eb373f9a09c33cc6ef43a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 31 Mar 2015 09:40:53 +0200 Subject: [PATCH] OA_READY already checked in is_available --- plugins/openalias.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/openalias.py b/plugins/openalias.py index 5c8f535c..7040245c 100644 --- 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.'))