Skip to content

Commit

Permalink
Don't warn on ptb
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed May 23, 2024
1 parent 3a0b324 commit 7a434c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ filterwarnings = [
"ignore::DeprecationWarning",
'ignore:Tasks created via `Application\.create_task` while the application is not running',
"ignore::ResourceWarning",
"ignore:Hey. You seem to be using the `python-telegram-bot-raw` library:UserWarning",
# TODO: Write so good code that we don't need to ignore ResourceWarnings anymore
# Unfortunately due to https://github.com/pytest-dev/pytest/issues/8343 we can't have this here
# and instead do a trick directly in tests/conftest.py
Expand Down
2 changes: 1 addition & 1 deletion telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
__bot_api_version_info__: constants._BotAPIVersion = _version.__bot_api_version_info__


if not (Path(__file__).resolve().absolute() / "ext").exists():
if not (Path(__file__).parent.resolve().absolute() / "ext").exists():
_MESSAGE = (
"Hey. You seem to be using the `python-telegram-bot-raw` library. "
"Please note that this libray has been deprecated and will no longer be updated. "
Expand Down

0 comments on commit 7a434c0

Please sign in to comment.