diff options
-rwxr-xr-x | glucometerutils/glucometer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/glucometerutils/glucometer.py b/glucometerutils/glucometer.py index 3f4ad4d..485b32b 100755 --- a/glucometerutils/glucometer.py +++ b/glucometerutils/glucometer.py @@ -86,6 +86,8 @@ def main(): if args.action == 'info': try: time_str = device.get_datetime() + except ValueError: + time_str = 'N/A' #handles value error exception for when time format found isn't expected except NotImplementedError: time_str = 'N/A' print("{device_info}Time: {time}".format( |