| changeset 30 | 0ebff1cb6c75 |
| parent 28 | e94a8b50235d |
| child 37 | 8ad334b5363b |
--- a/whois/parser.py Tue Aug 12 12:51:51 2014 +0300 +++ b/whois/parser.py Tue Aug 12 12:54:22 2014 +0300 @@ -92,7 +92,7 @@ setattr(self, attr, values) return getattr(self, attr) else: - raise KeyError('Unknown attribute: %s' % attr) + raise AttributeError('Unknown attribute: %s' % attr) def __str__(self): """Print all whois properties of domain