mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 08:40:28 +01:00
ci,marge_queue: enhance script interruption
Instead of printing an exception on the screen when the process is interrupted from the keyboard, handle it and print a more friendly message. Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37395>
This commit is contained in:
parent
915648f994
commit
02af2a199b
1 changed files with 5 additions and 1 deletions
|
|
@ -76,7 +76,11 @@ def main():
|
|||
if not args.wait:
|
||||
sys.exit(min(n_mrs, 127))
|
||||
|
||||
time.sleep(REFRESH_WAIT)
|
||||
try:
|
||||
time.sleep(REFRESH_WAIT)
|
||||
except KeyboardInterrupt:
|
||||
print("Sleep interrupted from keyboard, doing one last iteration before finish.")
|
||||
args.wait = False
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue