Skip to content

Commit

Permalink
Remove generic exception
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-wild committed Jan 4, 2024
1 parent 2289ae4 commit c8f9dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion causal_testing/surrogate/surrogate_search_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def search(self, fitness_functions: list[SearchFitnessFunction], specification:
if self.config is not None:
for k, v in self.config.items():
if k == "gene_space":
raise Exception(
raise ValueError(
"Gene space should not be set through config. This is generated from the causal "
"specification"
)
Expand Down

0 comments on commit c8f9dd3

Please sign in to comment.