Clean up per landscape

This commit is contained in:
Davis Goglin 2016-03-16 13:47:51 -07:00 committed by Davis Goglin
parent 9b40c0860f
commit 7a58109928
2 changed files with 2 additions and 5 deletions

View File

@ -3,11 +3,8 @@
from __future__ import absolute_import from __future__ import absolute_import
import argparse import argparse
import sys
import serial
import six import six
import os from . import config
from . import printer, config
# Used in demo method # Used in demo method
# Key: The name of escpos function and the argument passed on the CLI. Some # Key: The name of escpos function and the argument passed on the CLI. Some

View File

@ -48,7 +48,7 @@ class Config(object):
else: else:
with open(config_path, 'rb') as f: with open(config_path, 'rb') as f:
config = yaml.safe_load(f) config = yaml.safe_load(f)
except EnvironmentError as e: except EnvironmentError:
raise exceptions.ConfigNotFoundError('Couldn\'t read config at {config_path}'.format( raise exceptions.ConfigNotFoundError('Couldn\'t read config at {config_path}'.format(
config_path=str(config_path), config_path=str(config_path),
)) ))