diff --git a/telethon/errors/__init__.py b/telethon/errors/__init__.py index 0d02545b..a78ad5eb 100644 --- a/telethon/errors/__init__.py +++ b/telethon/errors/__init__.py @@ -38,7 +38,7 @@ def report_error(code, message, report_method): def rpc_message_to_error(code, message, report_method=None): if report_method is not None: Thread( - target=report_method, + target=report_error, args=(code, message, report_method) ).start()