Skip to content

Commit

Permalink
fix: Fix TypeError on some Python versions (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkb79 authored Mar 19, 2024
1 parent 0fa4dfc commit d6ce404
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

-
### Bugfix

- fix a `TypeError` on some Python versions when calling `importlib.metadata.entry_points` with group argument

## [0.3.0] - 2024-03-19

Expand Down
4 changes: 2 additions & 2 deletions src/audible_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
from ._logging import click_basic_config
from . import plugins

try:
if sys.version_info >= (3, 10):
from importlib.metadata import entry_points
except ImportError: # Python < 3.10 (backport)
else: # Python < 3.10 (backport)
from importlib_metadata import entry_points


Expand Down

0 comments on commit d6ce404

Please sign in to comment.