diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-08 17:48:10 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-08 17:48:10 +0200 |
commit | afdcc1219dc6a78fe21f46319dd0fc73da217c59 (patch) | |
tree | 0fe11260dfc94f06a081ffbceffe4d1e06a75136 /constructor.py | |
parent | d68c914426b826ff9b076eb870aebdfdef5d82aa (diff) | |
download | ruamel.yaml-afdcc1219dc6a78fe21f46319dd0fc73da217c59.tar.gz |
push new version fixing two issues0.15.51
Diffstat (limited to 'constructor.py')
-rw-r--r-- | constructor.py | 5 |
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)) |