3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

utils.CC2SC: slightly reword the "missing attribute" error

This commit is contained in:
James Lu 2017-06-27 16:26:53 -07:00
parent 91fe7e0ca7
commit 6684f9bf08

View File

@ -627,6 +627,6 @@ class CamelCaseToSnakeCase():
if normalized_attr == attr:
# __getattr__ only fires if normal attribute fetching fails, so we can assume that
# the attribute was tried already and failed.
raise AttributeError('%s object has no attribute of normalized name %r' % (self.__class__.__name__, attr))
raise AttributeError('%s object has no attribute with normalized name %r' % (self.__class__.__name__, attr))
return getattr(self, normalized_attr)