-
-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #739 from uri-rodberg/uri_master_2023-08-01
fixed DeprecationWarning
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,4 @@ jobs: | |
uses: codecov/codecov-action@v3 | ||
with: | ||
name: Python ${{ matrix.python-version }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
from importlib.metadata import version, PackageNotFoundError | ||
|
||
try: | ||
__version__ = get_distribution("sorl-thumbnail").version | ||
except DistributionNotFound: | ||
__version__ = version("sorl-thumbnail") | ||
except PackageNotFoundError: | ||
# package is not installed | ||
pass |