git://git.novaco.in
/
electrum-nvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix bug with has_seed
[electrum-nvc.git]
/
lib
/
bitcoin.py
diff --git
a/lib/bitcoin.py
b/lib/bitcoin.py
index
44174d2
..
328d1fd
100644
(file)
--- a/
lib/bitcoin.py
+++ b/
lib/bitcoin.py
@@
-299,7
+299,11
@@
def is_address(addr):
def is_private_key(key):
- return ASecretToSecret(key) is not False
+ try:
+ k = ASecretToSecret(key)
+ return k is not False
+ except:
+ return False
########### end pywallet functions #######################