diff --git a/hbmqtt/codecs.py b/hbmqtt/codecs.py index ba7c118..97838cb 100644 --- a/hbmqtt/codecs.py +++ b/hbmqtt/codecs.py @@ -54,7 +54,7 @@ def read_or_raise(reader, n=-1): except IncompleteReadError: raise NoDataException("Incomplete read") if not data: - raise NoDataException + raise NoDataException("No more data") return data @asyncio.coroutine