changeset 080dbd67b0dd in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=080dbd67b0dd
description:
        Ensure to exit after query canceled

        issue10272
        review365201003
        (grafted from 1b45f5a4b823b434b35a4d9ff6817e680f066023)
diffstat:

 tryton/common/common.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r bba153625edc -r 080dbd67b0dd tryton/common/common.py
--- a/tryton/common/common.py   Sun May 02 10:59:12 2021 +0200
+++ b/tryton/common/common.py   Sun May 02 11:04:35 2021 +0200
@@ -978,6 +978,7 @@
                 except TrytonError as exception:
                     if exception.faultCode == 'QueryCanceled':
                         Main().on_quit()
+                        sys.exit()
                     raise
                 finally:
                     PLOCK.release()

Reply via email to