diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-05-30 09:39:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-30 09:39:37 +0200 |
commit | bb5dda2290b7ad2cde2901bfb4e7d57dd745b35d (patch) | |
tree | 20af10018fa4142fbfeb51c2b0704eb7b6fc144d | |
parent | Merge pull request #11 from DorianScholz/fix_encoding_info (diff) | |
parent | Show import error when loading driver, so the actual cause of the problem can be seen (diff) | |
download | glucometerutils-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-x | glucometer.py | 6 |
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 |