backup: fix error handler for scrypt errors

process started via asyncio needs also stderr access via asyncio.
This commit is contained in:
Marek Marczykowski-Górecki 2020-07-06 01:15:22 +02:00
parent 0bccddf1f5
commit 8a04abe4b1
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -536,10 +536,9 @@ class Backup:
if retcode:
raise qubes.exc.QubesException(
"Failed to compute hmac of header file: "
+ scrypt.stderr.read())
+ (yield from scrypt.stderr.read()).decode())
return HEADER_FILENAME, HEADER_FILENAME + ".hmac"
def _send_progress_update(self):
if not self.total_backup_bytes:
return