Error Message Typo

Either neither with nor or either with or, but neither either with nor nor neither with or.
This commit is contained in:
Telethon Pull Requests 2019-04-22 16:54:29 +03:00 committed by GitHub
parent a151d24951
commit 1fc42f845d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ class NewMessage(EventBuilder):
incoming = not outgoing
elif all(x is not None and not x for x in (incoming, outgoing)):
raise ValueError("Don't create an event handler if you "
"don't want neither incoming or outgoing!")
"don't want neither incoming nor outgoing!")
super().__init__(chats, blacklist_chats=blacklist_chats, func=func)
self.incoming = incoming