Explorar o código

Merge pull request #6685 from ThomasWaldmann/fix-create-filter-master

fix create_filter_process exception handler, fixes #6681
TW %!s(int64=3) %!d(string=hai) anos
pai
achega
09a84fbd24
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/borg/helpers/process.py

+ 2 - 1
src/borg/helpers/process.py

@@ -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: