diff --git a/electrum/util.py b/electrum/util.py index 5223d857084..45d90ab7da0 100644 --- a/electrum/util.py +++ b/electrum/util.py @@ -1172,7 +1172,7 @@ def make_dir(path, *, allow_symlink=True): """ if not os.path.exists(path): if not allow_symlink and os.path.islink(path): - raise Exception('Dangling link: ' + path) + raise FileNotFoundError('Dangling link: ' + path) try: os.mkdir(path) except FileExistsError: