1
0

better errors

This commit is contained in:
ThomasV
2012-03-23 19:32:16 +01:00
parent 7d8f5e1aec
commit 22a0fdd492
3 changed files with 8 additions and 8 deletions

View File

@@ -782,7 +782,11 @@ class ElectrumWindow(QMainWindow):
except:
import mnemonic
print "not hex, trying decode"
seed = mnemonic.mn_decode( seed.split(' ') )
try:
seed = mnemonic.mn_decode( seed.split(' ') )
except:
QMessageBox.warning(None, 'Error', 'I cannot decode this', 'OK')
sys.exit(0)
if not seed:
QMessageBox.warning(None, 'Error', 'no seed', 'OK')
sys.exit(0)