Skip to content

Commit

Permalink
Update telegram/ext/_application.py
Browse files Browse the repository at this point in the history
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
  • Loading branch information
Bibo-Joshi and harshil21 committed May 10, 2024
1 parent 5af59ef commit e675a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/ext/_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ def __run(
updater_coroutine.close()

try:
# In we never got to await the coroutine, it's cleaner to close it here
# In case we never got to await the coroutine, it's cleaner to close it here
# This can be the case e.g. if post_init raises SystemExit
updater_coroutine.close()
# Mypy doesn't know that we already check if updater is None
Expand Down

0 comments on commit e675a43

Please sign in to comment.