Skip to content

Commit

Permalink
Merge pull request #104 from haesleinhuepf/bugfix_backwards_compatibi…
Browse files Browse the repository at this point in the history
…lity_importlib

Bugfix backwards compatibility importlib
  • Loading branch information
haesleinhuepf authored Dec 26, 2023
2 parents d4119f8 + a85e1e4 commit 9d748f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bia_bob/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.8.0"
__version__ = "0.8.1"

__all__ = (
)
Expand Down
8 changes: 6 additions & 2 deletions src/bia_bob/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ def create_system_prompt(reusable_variables_block=None):
if Context.plugins_enabled:
from importlib.metadata import entry_points

# Discover all bia-bob plugins
bia_bob_plugins = entry_points(group='bia_bob_plugins')
# Discover all bia-bob plugins\
try:
bia_bob_plugins = entry_points(group='bia_bob_plugins')
except TypeError:
all_plugins = entry_points()
bia_bob_plugins = all_plugins['bia_bob_plugins']

additional_instructions = []
# Iterate over discovered entry points and load them
Expand Down

0 comments on commit 9d748f9

Please sign in to comment.