From e7d7894130970072ae2ee1ed925db136fd26b5ac Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:43:58 -0800 Subject: [PATCH] Prevent redundant traceback display --- modules/errors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/errors.py b/modules/errors.py index 81cfe9379..38bdd17cc 100644 --- a/modules/errors.py +++ b/modules/errors.py @@ -1,6 +1,7 @@ import logging import warnings from installer import get_log, get_console, setup_logging, install_traceback +from sdnext_core.errorlimiter import ErrorLimiterAbort log = get_log() @@ -17,6 +18,8 @@ def install(suppress=[]): def display(e: Exception, task: str, suppress=[]): log.error(f"{task or 'error'}: {type(e).__name__}") + if isinstance(e, ErrorLimiterAbort): + return console = get_console() console.print_exception(show_locals=False, max_frames=16, extra_lines=1, suppress=suppress, theme="ansi_dark", word_wrap=False, width=console.width)