mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
flux true-scale and flux ipadapters
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user