summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-04-15 19:06:21 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-04-15 19:06:21 +0200
commit638e1b8b137e93bae46f8927fe4bf7d75721df64 (patch)
tree0d92d5859aab6ddd61f6a1a807865cf109579ebb
parentglucometer: make the error fatal and more clear when setting an invalid date. (diff)
downloadglucometerutils-638e1b8b137e93bae46f8927fe4bf7d75721df64.tar
glucometerutils-638e1b8b137e93bae46f8927fe4bf7d75721df64.tar.gz
glucometerutils-638e1b8b137e93bae46f8927fe4bf7d75721df64.tar.bz2
glucometerutils-638e1b8b137e93bae46f8927fe4bf7d75721df64.tar.lz
glucometerutils-638e1b8b137e93bae46f8927fe4bf7d75721df64.tar.xz
glucometerutils-638e1b8b137e93bae46f8927fe4bf7d75721df64.tar.zst
glucometerutils-638e1b8b137e93bae46f8927fe4bf7d75721df64.zip
Diffstat (limited to '')
-rw-r--r--glucometerutils/drivers/fsoptium.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/glucometerutils/drivers/fsoptium.py b/glucometerutils/drivers/fsoptium.py
index 92ee76d..2be063e 100644
--- a/glucometerutils/drivers/fsoptium.py
+++ b/glucometerutils/drivers/fsoptium.py
@@ -12,8 +12,8 @@ __copyright__ = 'Copyright © 2016-2017, Diego Elio Pettenò'
__license__ = 'MIT'
import datetime
+import logging
import re
-import sys
import serial
@@ -254,8 +254,7 @@ class Device(object):
raise exceptions.InvalidResponse(line)
if match.group('type') != 'G':
- print('Non-glucose readings are not supported, ignoring.',
- file=sys.stderr)
+ logging.warning('Non-glucose readings are not supported, ignoring.')
continue
if match.group('reading') == 'HI ':