Permalink
Browse files

Fixed: Remove self from TAG_Compound's key not found error message

String formatting was taking forever.
  • Loading branch information...
1 parent e8364f8 commit 86640ec61a85414c4095a5a5147a36d07b795abf @codewarrior0 codewarrior0 committed Dec 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nbt.py
View
2 nbt.py
@@ -350,7 +350,7 @@ def __getitem__(self, key):
for tag in self.value:
if tag.name == key:
return tag
- raise KeyError("Key {0} not found in tag {1}".format(key, self))
+ raise KeyError("Key {0} not found".format(key))
def __iter__(self):
return itertools.imap(lambda x: x.name, self.value)

0 comments on commit 86640ec

Please sign in to comment.