backup: fix error handler for scrypt errors
process started via asyncio needs also stderr access via asyncio.
This commit is contained in:
parent
0bccddf1f5
commit
8a04abe4b1
@ -536,10 +536,9 @@ class Backup:
|
|||||||
if retcode:
|
if retcode:
|
||||||
raise qubes.exc.QubesException(
|
raise qubes.exc.QubesException(
|
||||||
"Failed to compute hmac of header file: "
|
"Failed to compute hmac of header file: "
|
||||||
+ scrypt.stderr.read())
|
+ (yield from scrypt.stderr.read()).decode())
|
||||||
return HEADER_FILENAME, HEADER_FILENAME + ".hmac"
|
return HEADER_FILENAME, HEADER_FILENAME + ".hmac"
|
||||||
|
|
||||||
|
|
||||||
def _send_progress_update(self):
|
def _send_progress_update(self):
|
||||||
if not self.total_backup_bytes:
|
if not self.total_backup_bytes:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user