(self, document)
| 1348 | idx += 1 |
| 1349 | |
| 1350 | def validate(self, document): |
| 1351 | if self.word_count != 24: |
| 1352 | error = f'Expected 24 passphrase words. Got {self.word_count}. Press Ctrl-C to cancel current input.' |
| 1353 | raise ValidationError(cursor_position=document.cursor_position, message=error) |
| 1354 | |
| 1355 | |
| 1356 | class InvalidDeviceToken(Exception): |
nothing calls this directly
no test coverage detected