(self, attr)
| 17 | self._extra_message = extra_message |
| 18 | |
| 19 | def __getattr__(self, attr): |
| 20 | extra_message = self._extra_message |
| 21 | raise AttributeError( |
| 22 | 'attempted to access attribute %r of ExplodingObject %r%s' % ( |
| 23 | attr, |
| 24 | self._name, |
| 25 | ), |
| 26 | ' ' + extra_message if extra_message is not None else '', |
| 27 | ) |
| 28 | |
| 29 | def __repr__(self): |
| 30 | return '%s(%r%s)' % ( |
nothing calls this directly
no outgoing calls
no test coverage detected