create wallet directory if it doesnt exist

This commit is contained in:
Lex Berezhny 2018-08-23 02:55:17 -04:00 committed by Jack Robison
parent afae649a9e
commit 0c9c6c2705
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -132,7 +132,11 @@ class LbryWalletManager(BaseWalletManager):
#'db': db
}
wallet_file_path = os.path.join(settings['lbryum_wallet_dir'], 'wallets', 'default_wallet')
wallets_directory = os.path.join(settings['lbryum_wallet_dir'], 'wallets')
if not os.path.exists(wallets_directory):
os.mkdir(wallets_directory)
wallet_file_path = os.path.join(wallets_directory, 'default_wallet')
cls.migrate_lbryum_to_torba(wallet_file_path)