]> git.ipfire.org Git - thirdparty/dnspython.git/commit
If a message handler returned None, do not yield it to the caller.
authorBob Halley <halley@dnspython.org>
Sat, 1 May 2021 21:19:16 +0000 (14:19 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 1 May 2021 21:19:16 +0000 (14:19 -0700)
commit3deb941a5434a35a8ba81b6cee006677d9d566dc
tree97f7bfec78a997d16594136e1c682b9d73c8bf4b
parent1f8b41a9e2144c714d865b2f9c4a78eccaa122dd
If a message handler returned None, do not yield it to the caller.

This is a bit cleaner than yielding it and having the caller throw an
exception trying to treat it as a message.
tests/nanonameserver.py