mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-05 12:19:31 +00:00
- When an exception is raised in subprocess.run(), for that call the stdout and stderr are not being collected. Any previous successful calls are being collected. - This also fixes issues with adding an existing backup repository back after removal. Capturing stderr is essential for raising the proper exceptions and working correctly. Tests: - Remove an existing backup repository and add it back again. It fails with the patches and succeeds with the patches. - Remove an existing encrypted backup repository and add it back again with the wrong password. A proper error message is shown 'Incorrect encryption passphrase'. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>