X Tutup
Skip to content

Commit af3e8c6

Browse files
committed
Merge branch 'master' of https://github.com/LiaungYip/python-telegram-bot into LiaungYip-master
2 parents f34c09d + 1c36ff4 commit af3e8c6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The following wonderful people contributed directly or indirectly to this projec
1818
- `jh0ker <https://github.com/jh0ker>`_
1919
- `JRoot3D <https://github.com/JRoot3D>`_
2020
- `jlmadurga <https://github.com/jlmadurga>`_
21+
- `Li-aung Yip <https://github.com/LiaungYip>`_
2122
- `macrojames <https://github.com/macrojames>`_
2223
- `naveenvhegde <https://github.com/naveenvhegde>`_
2324
- `njittam <https://github.com/njittam>`_

telegram/ext/conversationhandler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ def handle_update(self, update, dispatcher):
213213

214214
def update_state(self, new_state, key):
215215
if new_state == self.END:
216-
del self.conversations[key]
216+
if key in self.conversations:
217+
del self.conversations[key]
217218

218219
elif isinstance(new_state, Promise):
219220
self.conversations[key] = (self.conversations[key], new_state)

0 commit comments

Comments
 (0)
X Tutup