Commit 6b745d1d authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Apply black

parent 2e339977
Pipeline #43746 passed with stages
in 10 minutes and 53 seconds
......@@ -128,6 +128,7 @@ def isErrno(e, errno):
# Because e.__cause__ is None for chained exceptions
return "errno = {}".format(errno) in "".join(traceback.format_exc())
def check_virtual_sources_exist(fname, data_path):
"""
Check that a virtual dataset points to actual data.
......@@ -152,7 +153,9 @@ def check_virtual_sources_exist(fname, data_path):
if not dptr.is_virtual:
return True
for vsource in dptr.virtual_sources():
vsource_fname = os.path.join(os.path.dirname(dptr.file.filename), vsource.file_name)
vsource_fname = os.path.join(
os.path.dirname(dptr.file.filename), vsource.file_name
)
if not os.path.isfile(vsource_fname):
print("No such file: %s" % vsource_fname)
return False
......
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