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.'))