diff --git a/escpos/cli.py b/escpos/cli.py index 5fa0d27..5dcda69 100755 --- a/escpos/cli.py +++ b/escpos/cli.py @@ -3,11 +3,8 @@ from __future__ import absolute_import import argparse -import sys -import serial import six -import os -from . import printer, config +from . import config # Used in demo method # Key: The name of escpos function and the argument passed on the CLI. Some diff --git a/escpos/config.py b/escpos/config.py index 2eed0bb..54aa0ea 100644 --- a/escpos/config.py +++ b/escpos/config.py @@ -48,7 +48,7 @@ class Config(object): else: with open(config_path, 'rb') as f: config = yaml.safe_load(f) - except EnvironmentError as e: + except EnvironmentError: raise exceptions.ConfigNotFoundError('Couldn\'t read config at {config_path}'.format( config_path=str(config_path), ))