Skip to content

Commit 51cf160

Browse files
Fixing tests
1 parent 32350b4 commit 51cf160

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyaml/configuration/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def depth_first_build(self, d):
169169
return self.build_object(d)
170170

171171
raise PyAMLConfigException(
172-
"Unexpected element found. 'dict' or 'list' expected"
172+
"Unexpected element found. 'dict' or 'list' expected "
173173
"but got '{d.__class__.__name__}'"
174174
)
175175

pyaml/configuration/fileloader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def expand_dict(self, d: dict):
124124
file, line, col = location
125125
location_str = f" in {file} at line {line}, column {col}"
126126
raise PyAMLException(
127-
f"Circular file inclusionof {pyaml_ex.error_filename}{location_str}"
127+
"Circular file inclusion "
128+
f"of {pyaml_ex.error_filename}{location_str}"
128129
) from pyaml_ex
129130

130131
# Recursively expand a list

0 commit comments

Comments
 (0)