mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
utils.CC2SC: slightly reword the "missing attribute" error
This commit is contained in:
parent
91fe7e0ca7
commit
6684f9bf08
2
utils.py
2
utils.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user