OA_READY already checked in is_available
This commit is contained in:
parent
8cc21a6a00
commit
66cbd5bc65
|
@ -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.'))
|
||||
|
|
Loading…
Reference in New Issue