Skip to content

Commit

Permalink
修改KeyError的raise (littlecodersh#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowuyz authored and chyroc committed Sep 26, 2018
1 parent dd23b5e commit d5ce5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itchat/storage/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d5ce5db

Please sign in to comment.