| 30 | |
| 31 | |
| 32 | class CommandError(Error): |
| 33 | def __init__(self, command, message): |
| 34 | super().__init__(message) |
| 35 | self.command = command |
| 36 | |
| 37 | def __str__(self): |
| 38 | if self.command: |
| 39 | return f'{self.command}: {self.message}' |
| 40 | else: |
| 41 | return super().__str__() |
| 42 |
no outgoing calls