flux true-scale and flux ipadapters

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-12-21 16:01:35 -05:00
parent e458e3e448
commit bf67ffd34a
7 changed files with 64 additions and 25 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ def print_error_explanation(message):
log.error(line)
def display(e: Exception, task, suppress=[]):
def display(e: Exception, task: str, suppress=[]):
log.error(f"{task or 'error'}: {type(e).__name__}")
console.print_exception(show_locals=False, max_frames=16, extra_lines=1, suppress=suppress, theme="ansi_dark", word_wrap=False, width=console.width)
@@ -48,7 +48,7 @@ def display_once(e: Exception, task):
already_displayed[task] = 1
def run(code, task):
def run(code, task: str):
try:
code()
except Exception as e: