From 0733e82e0c02e2134f2ff9e890b535e655866a2d Mon Sep 17 00:00:00 2001 From: fjosw Date: Fri, 21 Jan 2022 13:41:18 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/input/sfcf.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/pyerrors/input/sfcf.html b/docs/pyerrors/input/sfcf.html index 429c5f95..8f462182 100644 --- a/docs/pyerrors/input/sfcf.html +++ b/docs/pyerrors/input/sfcf.html @@ -183,12 +183,12 @@ else: ls.extend(filenames) break - if not ls: - raise Exception('Error, directory not found') # Exclude folders with different names for exc in ls: if not fnmatch.fnmatch(exc, prefix + '*'): ls = list(set(ls) - set([exc])) + if not ls: + raise Exception('No matching directories found.') if len(ls) > 1: ls.sort(key=lambda x: int(re.findall(r'\d+', x[len(prefix):])[0])) @@ -553,12 +553,12 @@ else: ls.extend(filenames) break - if not ls: - raise Exception('Error, directory not found') # Exclude folders with different names for exc in ls: if not fnmatch.fnmatch(exc, prefix + '*'): ls = list(set(ls) - set([exc])) + if not ls: + raise Exception('No matching directories found.') if len(ls) > 1: ls.sort(key=lambda x: int(re.findall(r'\d+', x[len(prefix):])[0]))