mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Actually raise mutually exclusive arg error
This commit is contained in:
parent
4ae9a5ad38
commit
19854a5d4f
@ -2668,7 +2668,7 @@ class Client:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if file_name is not None and file_dir is not None:
|
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)):
|
if isinstance(message, (types.Message, types.Photo)):
|
||||||
done = Event()
|
done = Event()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user