Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Nilsson committed Dec 11, 2024
1 parent 1612a2f commit 258f159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pilot/util/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 258f159

Please sign in to comment.