Skip to content

Commit

Permalink
Fix key error in topics parsing.
Browse files Browse the repository at this point in the history
Signed-off-by: Aliwoto <[email protected]>
  • Loading branch information
ALiwoto committed May 17, 2024
1 parent 2fc432b commit a9c8c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyrogram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

__version__ = "2.0.143"
__version__ = "2.0.144"
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"

Expand Down
2 changes: 1 addition & 1 deletion pyrogram/methods/chats/get_forum_topics_by_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ async def get_forum_topics_by_id(
chats=chats
))

return topics if is_iterable else topics[0] if topics else None
return topics_list if is_iterable else topics_list[0] if topics_list else None

0 comments on commit a9c8c76

Please sign in to comment.