File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ def _load_yaml(self, config_file):
147147 with open (config_file ) as f :
148148 return yaml .safe_load (f .read ())
149149 except yaml .YAMLError as exc :
150- logger .error ("Could not parse config as YAML: {}" , str (exc ))
150+ logger .error ("Could not parse config as YAML: {}" . format (exc ))
151151 if hasattr (exc , 'problem_mark' ):
152152 mark = exc .problem_mark
153- logger .error ("Error position: (%s:%s)" % ( mark .line + 1 , mark .column + 1 ))
153+ logger .error ("Error position: ({line}:{column})" . format ( line = mark .line + 1 , column = mark .column + 1 ))
154154 except IOError as e :
155- logger .debug ("Could not open config file: {}" , str (e ))
155+ logger .debug ("Could not open config file: {}" . format (e ))
156156
157157 return None
You can’t perform that action at this time.
0 commit comments