fix flake8 issues

This commit is contained in:
Robert Kaussow 2019-10-09 00:59:40 +02:00
parent f23aa552c1
commit d30ebe6598

View File

@ -5,10 +5,10 @@ import os
import sys import sys
import anyconfig import anyconfig
import environs
import jsonschema.exceptions import jsonschema.exceptions
import yaml import yaml
from appdirs import AppDirs from appdirs import AppDirs
import environs
from jsonschema._utils import format_as_index from jsonschema._utils import format_as_index
from pkg_resources import resource_filename from pkg_resources import resource_filename
@ -174,7 +174,7 @@ class Config():
if '"{}" not set'.format(envname) in str(e): if '"{}" not set'.format(envname) in str(e):
pass pass
else: else:
raise ansibledoctor.Exception.ConfigError('Unable to read environment variable', str(e)) raise ansibledoctor.Exception.ConfigError("Unable to read environment variable", str(e))
return normalized return normalized