Skip to content

Commit a9c8c76

Browse files
committed
Fix key error in topics parsing.
Signed-off-by: Aliwoto <[email protected]>
1 parent 2fc432b commit a9c8c76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

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

pyrogram/methods/chats/get_forum_topics_by_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ async def get_forum_topics_by_id(
101101
chats=chats
102102
))
103103

104-
return topics if is_iterable else topics[0] if topics else None
104+
return topics_list if is_iterable else topics_list[0] if topics_list else None

0 commit comments

Comments
 (0)