do not raise BaseException
This commit is contained in:
@@ -107,7 +107,7 @@ class SimpleConfig(PrintError):
|
||||
# Make directory if it does not yet exist.
|
||||
if not os.path.exists(path):
|
||||
if os.path.islink(path):
|
||||
raise BaseException('Dangling link: ' + path)
|
||||
raise Exception('Dangling link: ' + path)
|
||||
os.mkdir(path)
|
||||
os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
|
||||
|
||||
@@ -190,7 +190,7 @@ class SimpleConfig(PrintError):
|
||||
if cur_version > max_version:
|
||||
return False
|
||||
elif cur_version < min_version:
|
||||
raise BaseException(
|
||||
raise Exception(
|
||||
('config upgrade: unexpected version %d (should be %d-%d)'
|
||||
% (cur_version, min_version, max_version)))
|
||||
else:
|
||||
@@ -240,7 +240,7 @@ class SimpleConfig(PrintError):
|
||||
dirpath = os.path.join(self.path, "wallets")
|
||||
if not os.path.exists(dirpath):
|
||||
if os.path.islink(dirpath):
|
||||
raise BaseException('Dangling link: ' + dirpath)
|
||||
raise Exception('Dangling link: ' + dirpath)
|
||||
os.mkdir(dirpath)
|
||||
os.chmod(dirpath, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user