tOA: show requirement; use print_error for debugging - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 3ed9e46672892fc5f1a7e018ef1736b4eb77aeaa (DIR) parent 42e586dc463b2c3bf3cc1af7eb5b2d3b22f0c3fc (HTM) Author: ThomasV <thomasv@gitorious> Date: Tue, 17 Feb 2015 16:48:00 +0100 OA: show requirement; use print_error for debugging Diffstat: M plugins/openalias.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- (DIR) diff --git a/plugins/openalias.py b/plugins/openalias.py t@@ -37,7 +37,7 @@ from electrum_gui.qt.util import EnterButton from electrum.plugins import BasePlugin, hook -from electrum.util import print_msg +from electrum.util import print_error from electrum.i18n import _ from PyQt4.QtGui import * from PyQt4.QtCore import * t@@ -77,13 +77,13 @@ class Plugin(BasePlugin): return 'OpenAlias' def description(self): - return 'Allow for payments to OpenAlias addresses.' + return 'Allow for payments to OpenAlias addresses.\nRequires dnspython' def is_available(self): return OA_READY def __init__(self, gui, name): - print_msg('[OA] Initialiasing OpenAlias plugin, OA_READY is ' + str(OA_READY)) + print_error('[OA] Initialiasing OpenAlias plugin, OA_READY is ' + str(OA_READY)) BasePlugin.__init__(self, gui, name) self._is_available = OA_READY t@@ -266,7 +266,7 @@ class Plugin(BasePlugin): def resolve(self, url): '''Resolve OpenAlias address using url.''' - print_msg('[OA] Attempting to resolve OpenAlias data for ' + url) + print_error('[OA] Attempting to resolve OpenAlias data for ' + url) prefix = 'btc' retries = 3 t@@ -314,7 +314,7 @@ class Plugin(BasePlugin): return None def validate_dnssec(self, url): - print_msg('[OA] Checking DNSSEC trust chain for ' + url) + print_error('[OA] Checking DNSSEC trust chain for ' + url) try: default = dns.resolver.get_default_resolver()