From 258f15975cff1b7bfde6084b22acd873f6244a56 Mon Sep 17 00:00:00 2001 From: Paul Nilsson Date: Wed, 11 Dec 2024 14:32:45 +0100 Subject: [PATCH] Added comments --- pilot/util/container.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pilot/util/container.py b/pilot/util/container.py index d5483659..d4b1c627 100644 --- a/pilot/util/container.py +++ b/pilot/util/container.py @@ -119,9 +119,11 @@ def read_output(stream, queue): if not line: break except (AttributeError, ValueError): + # Handle the case where stream is None (AttributeError) or closed (ValueError) break except OSError as e: if e.errno == errno.EBADF: + # Handle the case where the file descriptor is bad break else: raise