From 493f5cec1f443b738538f3e7f741ad13fef8848c Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 25 Sep 2017 11:57:42 +0200 Subject: [PATCH] Fix-up target method typo --- telethon/errors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()