From af18610d8cc2db8081ed0dc38faa2712661f02f0 Mon Sep 17 00:00:00 2001 From: Jake Stevens-Haas <37048747+Jacob-Stevens-Haas@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:55:32 -0700 Subject: [PATCH] DOn't merge, just for troubleshooting CI --- derivative/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/derivative/utils.py b/derivative/utils.py index 707f866..616c88c 100644 --- a/derivative/utils.py +++ b/derivative/utils.py @@ -10,7 +10,11 @@ else: from importlib.metadata import entry_points -hyperparam_algorithms = entry_points(group="derivative.hyperparam_opt") +try: + hyperparam_algorithms = entry_points(group="derivative.hyperparam_opt") +except TypeError as exc: + import sys + raise TypeError(f"Oops, no 'group' kwarg. function imported from {entry_points.__module__}") def _load_hyperparam_func(func_key):