2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Actually raise mutually exclusive arg error

This commit is contained in:
Eric Blundell 2018-03-20 08:10:24 -05:00
parent 4ae9a5ad38
commit 19854a5d4f

View File

@ -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()