1
0

contrib: import 'requests' in try-except

This commit is contained in:
SomberNight
2018-12-13 23:25:52 +01:00
parent 78f5afff74
commit 8b775fd24a
5 changed files with 13 additions and 5 deletions

View File

@@ -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()

View File

@@ -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):