diff --git a/itchat/storage/templates.py b/itchat/storage/templates.py index 7c6dd917..2c23c3e4 100644 --- a/itchat/storage/templates.py +++ b/itchat/storage/templates.py @@ -13,7 +13,7 @@ def __getattr__(self, value): return self[keyName] except KeyError: raise AttributeError("'%s' object has no attribute '%s'" % ( - self.__class__.__name__.split('.')[-1], value)) + self.__class__.__name__.split('.')[-1], keyName)) def get(self, v, d=None): try: return self[v]