diff options
author | matmutant <matmutant@users.noreply.github.com> | 2019-07-01 20:59:29 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2019-07-01 21:37:39 +0200 |
commit | 7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5 (patch) | |
tree | 49aab571cf998ed8922cf01731344d61be16957b | |
parent | common: Correctly show ketone sample type in csv (diff) | |
download | glucometerutils-7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5.tar glucometerutils-7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5.tar.gz glucometerutils-7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5.tar.bz2 glucometerutils-7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5.tar.lz glucometerutils-7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5.tar.xz glucometerutils-7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5.tar.zst glucometerutils-7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5.zip |
-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( |