Commit 0ee60a28 authored by Guido Trotter's avatar Guido Trotter
Browse files

Remove redundant check.

This isdir() check leads to a broken error message. Even fixing it creates some
cases in which the error message is nebulous and unclear while removing it
makes this situation be dealt with a lot better by the _OSOndiskVersion checks.

Reviewed-by: iustinp
parent 97a37b3f
......@@ -996,9 +996,6 @@ def OSFromDisk(name, base_dir=None):
if base_dir is None:
base_dir = _OSSearch(name)
if not os.path.isdir(os.path.sep.join([base_dir, name])):
raise errors.InvalidOS(name, "OS not found in base dir %s" % base_dir)
if base_dir is None:
raise errors.InvalidOS(name, None, "OS dir not found in search path")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment