Skip to content

Commit

Permalink
Don't show errors from user-initiated cancellations
Browse files Browse the repository at this point in the history
For #3
  • Loading branch information
peterstory committed Oct 13, 2023
1 parent 4cc8656 commit f344ec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pydiode/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ def check_subprocesses(widget, cancelled, *args):
# If a subprocess exited irregularly, describe the issue
error_msgs = []
for name, popen in args:
if popen.returncode:
# 0: normal exit.
# -15: SIGTERM, likely from user-initiated cancellation.
if popen.returncode not in {-15, 0}:
error_msgs.append(get_process_error(name, popen))
if error_msgs:
error_msgs.insert(0, "Error:")
Expand Down

0 comments on commit f344ec7

Please sign in to comment.