{}: {}
| 113 | |
| 114 | |
| 115 | class BackupWarning(BorgWarning): |
| 116 | """{}: {}""" |
| 117 | |
| 118 | # this is to wrap a caught BackupError exception, so it can be given to print_warning_instance |
| 119 | |
| 120 | @property |
| 121 | def exit_code(self): |
| 122 | if not modern_ec: |
| 123 | return EXIT_WARNING |
| 124 | exc = self.args[1] |
| 125 | assert isinstance(exc, BackupError) |
| 126 | return exc.exit_mcode |
| 127 | |
| 128 | |
| 129 | class BackupError(ErrorBase): |
no outgoing calls
no test coverage detected