aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze/__main__.py b/src/argaze/__main__.py
index 127baa8..9bcbe5a 100644
--- a/src/argaze/__main__.py
+++ b/src/argaze/__main__.py
@@ -66,7 +66,7 @@ with load(args.context_file) as context:
cv2.namedWindow(context.name, cv2.WINDOW_AUTOSIZE)
# Waiting for 'ctrl+C' interruption
- with contextlib.suppress(KeyboardInterrupt), os.fdopen(pipe_file) as pipe:
+ with contextlib.suppress(KeyboardInterrupt), os.fdopen(pipe_file) if args.pipe_path is not None else contextlib.nullcontext() as pipe:
# Visualization loop
while True: