mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 23:13:25 +00:00
fix create_filter_process exception handler, fixes #6681
if cmd was falsy (e.g. None), there is no proc. then, if "yield stream" raises an exception, the exception handler crashed at "proc.kill()".
This commit is contained in:
parent
dc89798496
commit
18eb696a17
1 changed files with 2 additions and 1 deletions
|
@ -332,7 +332,8 @@ def create_filter_process(cmd, stream, stream_close, inbound=True):
|
|||
except Exception:
|
||||
# something went wrong with processing the stream by borg
|
||||
logger.debug('Exception, killing the filter...')
|
||||
proc.kill()
|
||||
if cmd:
|
||||
proc.kill()
|
||||
borg_succeeded = False
|
||||
raise
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue