diff --git a/docs/pyerrors/input/hadrons.html b/docs/pyerrors/input/hadrons.html
index 35eda827..7b3292c0 100644
--- a/docs/pyerrors/input/hadrons.html
+++ b/docs/pyerrors/input/hadrons.html
@@ -137,9 +137,11 @@
raise Exception("Unsorted files")
if len(dc) == 1:
idx = range(cnfg_numbers[0], cnfg_numbers[-1] + dc[0], dc[0])
- else:
+ elif idl:
idx = idl
warnings.warn("Configurations are not evenly spaced.", RuntimeWarning)
+ else:
+ raise Exception("Configurations are not evenly spaced.")
return filtered_files, idx