Skip to content

Commit 3613936

Browse files
committed
Extend Regex For Compatibility Warning
1 parent 140716e commit 3613936

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

components/const.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,14 @@
233233

234234
COMPAT_ERRORS = re.compile(
235235
r"""
236-
(Updater\._{0,2}init_{0,2}\(\)\ got\ an\ )?
237-
unexpected\ keyword\ argument\ ['"]*(use_context|token|use_controls|dispatcher)['"]*
236+
(
237+
(Updater\._{0,2}init_{0,2}\(\)\ got\ an\ )?
238+
unexpected\ keyword\ argument\ ['"]*(use_context|token|use_controls|dispatcher)['"]*
239+
)|(
240+
updater\.(idle\(\)|dispatcher)
241+
)|(
242+
dispatcher.add_handler\(
243+
)
238244
""",
239245
flags=re.VERBOSE,
240246
)

0 commit comments

Comments
 (0)