From faebae14f06afe1e31f1f9b148f575b7b6cc6fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 1 Jul 2019 21:17:25 +0100 Subject: Fix syntax error. --- glucometerutils/glucometer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glucometerutils/glucometer.py b/glucometerutils/glucometer.py index 14999a7..8cf2555 100755 --- a/glucometerutils/glucometer.py +++ b/glucometerutils/glucometer.py @@ -88,7 +88,8 @@ def main(): time_str = device.get_datetime() except exceptions.InvalidDateTime: time_str = 'INVALID' - except NotImplementedError, ValueError: # Catch any leftover ValueError + # Also catch any leftover ValueErrors. + except (NotImplementedError, ValueError): time_str = 'N/A' print("{device_info}Time: {time}".format( device_info=str(device_info), time=time_str)) -- cgit v1.2.3