Skip to content

Commit c8f9dd3

Browse files
Remove generic exception
1 parent 2289ae4 commit c8f9dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/surrogate/surrogate_search_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def search(self, fitness_functions: list[SearchFitnessFunction], specification:
7171
if self.config is not None:
7272
for k, v in self.config.items():
7373
if k == "gene_space":
74-
raise Exception(
74+
raise ValueError(
7575
"Gene space should not be set through config. This is generated from the causal "
7676
"specification"
7777
)

0 commit comments

Comments
 (0)