fix #1175
This commit is contained in:
parent
2af42168a4
commit
10d26806d9
@ -106,7 +106,8 @@ class Mnemonic(object):
|
|||||||
# Seed derivation no longer follows BIP39
|
# Seed derivation no longer follows BIP39
|
||||||
# Mnemonic phrase uses a hash based checksum, instead of a wordlist-dependent checksum
|
# Mnemonic phrase uses a hash based checksum, instead of a wordlist-dependent checksum
|
||||||
|
|
||||||
def __init__(self, lang='en'):
|
def __init__(self, lang=None):
|
||||||
|
lang = lang or 'en'
|
||||||
print_error('language', lang)
|
print_error('language', lang)
|
||||||
filename = filenames.get(lang[0:2], 'english.txt')
|
filename = filenames.get(lang[0:2], 'english.txt')
|
||||||
path = os.path.join(os.path.dirname(__file__), 'wordlist', filename)
|
path = os.path.join(os.path.dirname(__file__), 'wordlist', filename)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user