contrib: import 'requests' in try-except
This commit is contained in:
@@ -790,7 +790,7 @@ class ElectrumWindow(App):
|
||||
notification.notify('Electrum', message,
|
||||
app_icon=icon, app_name='Electrum')
|
||||
except ImportError:
|
||||
Logger.Error('Notification: needs plyer; `sudo pip install plyer`')
|
||||
Logger.Error('Notification: needs plyer; `sudo python3 -m pip install plyer`')
|
||||
|
||||
def on_pause(self):
|
||||
self.pause_time = time.time()
|
||||
|
||||
@@ -29,7 +29,7 @@ from . import FAST_TESTS
|
||||
try:
|
||||
import ecdsa
|
||||
except ImportError:
|
||||
sys.exit("Error: python-ecdsa does not seem to be installed. Try 'sudo pip install ecdsa'")
|
||||
sys.exit("Error: python-ecdsa does not seem to be installed. Try 'sudo python3 -m pip install ecdsa'")
|
||||
|
||||
|
||||
def needs_test_with_all_ecc_implementations(func):
|
||||
|
||||
Reference in New Issue
Block a user