From e9bc2ad97817f6c28aad0eef01adeb07ec74eefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sat, 21 Sep 2019 20:46:11 +0100 Subject: freestyle: fix return type for empty log. () is not a valid Iterator[List[Text]] --- glucometerutils/support/freestyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index 5b441ff..c7dbdb9 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -277,7 +277,7 @@ class FreeStyleHidDevice(hiddevice.HidDevice): message = self._send_text_command(command) logging.debug('Received multirecord message:\n%s', message) if message == "Log Empty\r\n": - return () + return iter(()) match = _MULTIRECORDS_FORMAT.search(message) if not match: -- cgit v1.2.3