Skip to content

Commit dce3109

Browse files
committed
Small changes due to CR
1 parent 65b8d65 commit dce3109

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

telegram/ext/basepersistence.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ class BasePersistence(object):
3636
Attributes:
3737
store_user_data (:obj:`bool`): Optional, Whether user_data should be saved by this
3838
persistence class.
39-
store_chat_data (:obj:`bool`): Optional. Whether user_data should be saved by this
39+
store_chat_data (:obj:`bool`): Optional. Whether chat_data should be saved by this
4040
persistence class.
4141
4242
Args:
4343
store_user_data (:obj:`bool`, optional): Whether user_data should be saved by this
4444
persistence class. Default is ``True``.
45-
store_chat_data (:obj:`bool`, optional): Whether user_data should be saved by this
45+
store_chat_data (:obj:`bool`, optional): Whether chat_data should be saved by this
4646
persistence class. Default is ``True`` .
4747
"""
4848

@@ -120,4 +120,4 @@ def flush(self):
120120
persistence a chance to finish up saving or close a database connection gracefully. If this
121121
is not of any importance just pass will be sufficient.
122122
"""
123-
raise NotImplementedError
123+
pass

telegram/ext/dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self, bot, update_queue, workers=4, exception_event=None, job_queue
116116
if self.persistence.store_chat_data:
117117
self.chat_data = self.persistence.get_chat_data()
118118
if not isinstance(self.chat_data, defaultdict):
119-
raise ValueError("`chat_data must be of type defaultdict")
119+
raise ValueError("chat_data must be of type defaultdict")
120120
else:
121121
self.chat_data = defaultdict(dict)
122122

0 commit comments

Comments
 (0)