diff --git a/docs/pyerrors/input/sfcf.html b/docs/pyerrors/input/sfcf.html
index b3a5a803..4279ba10 100644
--- a/docs/pyerrors/input/sfcf.html
+++ b/docs/pyerrors/input/sfcf.html
@@ -282,6 +282,7 @@
read = 1
start = k + 1
print(str(T) + " entries found.")
+ file.close()
else:
pattern = 'name ' + name + '\nquarks ' + quarks + '\noffset ' + str(noffset) + '\nwf ' + str(wf)
if b2b:
@@ -301,8 +302,11 @@
T = content[match.start():].count('\n', 0, end_match.start()) - 4 - b2b
assert T > 0
print(T, 'entries, starting to read in line', start_read)
+ file.close()
else:
+ file.close()
raise Exception('Correlator with pattern\n' + pattern + '\nnot found.')
+
# we found where the correlator
# that is to be read is in the files
# after preparing the datastructure
@@ -654,6 +658,7 @@
read = 1
start = k + 1
print(str(T) + " entries found.")
+ file.close()
else:
pattern = 'name ' + name + '\nquarks ' + quarks + '\noffset ' + str(noffset) + '\nwf ' + str(wf)
if b2b:
@@ -673,8 +678,11 @@
T = content[match.start():].count('\n', 0, end_match.start()) - 4 - b2b
assert T > 0
print(T, 'entries, starting to read in line', start_read)
+ file.close()
else:
+ file.close()
raise Exception('Correlator with pattern\n' + pattern + '\nnot found.')
+
# we found where the correlator
# that is to be read is in the files
# after preparing the datastructure