summaryrefslogtreecommitdiff
path: root/constructor.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-08 17:48:10 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-08 17:48:10 +0200
commitafdcc1219dc6a78fe21f46319dd0fc73da217c59 (patch)
tree0fe11260dfc94f06a081ffbceffe4d1e06a75136 /constructor.py
parentd68c914426b826ff9b076eb870aebdfdef5d82aa (diff)
downloadruamel.yaml-afdcc1219dc6a78fe21f46319dd0fc73da217c59.tar.gz
push new version fixing two issues0.15.51
Diffstat (limited to 'constructor.py')
-rw-r--r--constructor.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/constructor.py b/constructor.py
index ab3ebf5..450a3d4 100644
--- a/constructor.py
+++ b/constructor.py
@@ -801,12 +801,11 @@ class Constructor(SafeConstructor):
obj = module
while lobject_name:
if not hasattr(obj, lobject_name[0]):
-
+
raise ConstructorError(
'while constructing a Python object',
mark,
- 'cannot find %r in the module %r' % (
- utf8(object_name), module.__name__),
+ 'cannot find %r in the module %r' % (utf8(object_name), module.__name__),
mark,
)
obj = getattr(obj, lobject_name.pop(0))