summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatmutant <matmutant@users.noreply.github.com>2019-07-01 20:59:29 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2019-07-01 21:37:39 +0200
commit7c5f0e7ae0cfaa2c66b610a6c70171bb054f80c5 (patch)
tree49aab571cf998ed8922cf01731344d61be16957b
parentcommon: Correctly show ketone sample type in csv (diff)
downloadglucometerutils-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-xglucometerutils/glucometer.py2
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(