assert datadir available
This commit is contained in:
@@ -6,6 +6,7 @@ import stat
|
||||
|
||||
from copy import deepcopy
|
||||
|
||||
from . import util
|
||||
from .util import (user_dir, print_error, PrintError,
|
||||
NoDynamicFeeEstimates, format_fee_satoshis)
|
||||
from .i18n import _
|
||||
@@ -236,10 +237,7 @@ class SimpleConfig(PrintError):
|
||||
return path
|
||||
|
||||
# default path
|
||||
if not os.path.exists(self.path):
|
||||
raise FileNotFoundError(
|
||||
_('Electrum datadir does not exist. Was it deleted while running?') + '\n' +
|
||||
_('Should be at {}').format(self.path))
|
||||
util.assert_datadir_available(self.path)
|
||||
dirpath = os.path.join(self.path, "wallets")
|
||||
if not os.path.exists(dirpath):
|
||||
if os.path.islink(dirpath):
|
||||
|
||||
Reference in New Issue
Block a user