diff options
-rw-r--r-- | buildstream/_artifactcache/pushreceive.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py index e0da3a2af..a7f78710e 100644 --- a/buildstream/_artifactcache/pushreceive.py +++ b/buildstream/_artifactcache/pushreceive.py @@ -482,8 +482,10 @@ class OSTreeReceiver(object): exit_code = self.do_run() self.close() return exit_code - except PushException, BrokenPipeError, tarfile.TarError: - # Ensure we cleanup files if there was an error + except: + # BLIND EXCEPT - Just abort if we receive any exception, this + # can be a broken pipe, a tarfile read error when the remote + # connection is closed, a bug; whatever happens we want to cleanup. self.close() raise |