Skip to content

Commit

Permalink
Fix warinng
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed Apr 19, 2024
1 parent b1a6048 commit ad95722
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion copulas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def _find_addons():
try:
addon = entry_point.load()
except Exception: # pylint: disable=broad-exception-caught
msg = f'Failed to load "{entry_point.name}" from "{entry_point.version}".'
msg = f'Failed to load "{entry_point.name}" from "{entry_point.value}".'
warnings.warn(msg)
continue

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test___init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def entry_point_error():

bad_entry_point = MagicMock()
bad_entry_point.name = 'bad_entry_point'
bad_entry_point.version = 'bad_module'
bad_entry_point.value = 'bad_module'
bad_entry_point.load.side_effect = entry_point_error
entry_points_mock.return_value = [bad_entry_point]
msg = 'Failed to load "bad_entry_point" from "bad_module".'
Expand Down

0 comments on commit ad95722

Please sign in to comment.