Skip to content

Commit

Permalink
Revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed Mar 29, 2024
1 parent 6c6c1c2 commit ab205cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion copulas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,13 @@ def _get_addon_target(addon_path_name):
def _find_addons():
"""Find and load all copulas add-ons."""
group = 'copulas_modules'
for entry_point in entry_points().select(group=group):
try:
eps = entry_points(group=group)
except TypeError:
# Load-time selection requires Python >= 3.10 or importlib_metadata >= 3.6
eps = entry_points().get(group, [])

for entry_point in eps:
try:
addon = entry_point.load()
except Exception: # pylint: disable=broad-exception-caught
Expand Down

0 comments on commit ab205cc

Please sign in to comment.