From 19854a5d4f3cae71bf4b32eebf7603882c3d7065 Mon Sep 17 00:00:00 2001 From: Eric Blundell Date: Tue, 20 Mar 2018 08:10:24 -0500 Subject: [PATCH] Actually raise mutually exclusive arg error --- pyrogram/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 2f2d1a23..6c8ee1b5 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2668,7 +2668,7 @@ class Client: """ if file_name is not None and file_dir is not None: - ValueError('file_name and file_dir may not be specified together.') + raise ValueError('file_name and file_dir may not be specified together.') if isinstance(message, (types.Message, types.Photo)): done = Event()