summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-05-30 09:39:37 +0200
committerGitHub <noreply@github.com>2017-05-30 09:39:37 +0200
commitbb5dda2290b7ad2cde2901bfb4e7d57dd745b35d (patch)
tree20af10018fa4142fbfeb51c2b0704eb7b6fc144d
parentMerge pull request #11 from DorianScholz/fix_encoding_info (diff)
parentShow import error when loading driver, so the actual cause of the problem can be seen (diff)
downloadglucometerutils-bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d.tar
glucometerutils-bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d.tar.gz
glucometerutils-bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d.tar.bz2
glucometerutils-bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d.tar.lz
glucometerutils-bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d.tar.xz
glucometerutils-bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d.tar.zst
glucometerutils-bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d.zip
-rwxr-xr-xglucometer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometer.py b/glucometer.py
index 19a47a8..c037d7c 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -65,10 +65,10 @@ def main():
try:
driver = importlib.import_module('glucometerutils.drivers.' + args.driver)
- except ImportError:
+ except ImportError as e:
logging.error(
- 'No driver "%s" found, please check your --driver parameter.',
- args.driver)
+ 'Error importing driver "%s", please check your --driver parameter:\n%s',
+ args.driver, e)
return 1
# This check needs to happen before we try to initialize the device, as the