X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=plugins%2Fcoinbase_buyback.py;h=04c3cff2df3a2c78a6e99b35c6cf988c4c110c5a;hb=068609b4a65a172a15a24299b8a0fad0ef82898c;hp=27a2f51265c4adb9d01f070848e92044975999e5;hpb=e2890dc366c1e596766322212974bbce26a37c4b;p=electrum-nvc.git diff --git a/plugins/coinbase_buyback.py b/plugins/coinbase_buyback.py index 27a2f51..04c3cff 100644 --- a/plugins/coinbase_buyback.py +++ b/plugins/coinbase_buyback.py @@ -16,7 +16,11 @@ from urllib import urlencode from PyQt4.QtGui import * from PyQt4.QtCore import * -from PyQt4.QtWebKit import QWebView +try: + from PyQt4.QtWebKit import QWebView + loaded_qweb = True +except ImportError as e: + loaded_qweb = False from electrum import BasePlugin from electrum.i18n import _, set_language @@ -46,7 +50,7 @@ class Plugin(BasePlugin): self._is_available = self._init() def _init(self): - return True + return loaded_qweb def is_available(self): return self._is_available