Skip to content

Commit dd5b053

Browse files
committed
Address PR feedback
1 parent 92c4cc2 commit dd5b053

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • StabilityMatrix.Core/Models/Packages

StabilityMatrix.Core/Models/Packages/Wan2GP.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ import transformers.utils.logging as tf_logging
122122
tf_logging.set_verbosity_error = lambda: None
123123
tf_logging.set_verbosity_warning = lambda: None
124124
tf_logging.set_verbosity(logging.INFO)
125-
except Exception:
126-
pass
125+
except Exception as e:
126+
print(f"[StabilityMatrix] Failed to patch transformers logging: {e}", file=sys.stderr, flush=True)
127127
128128
# Monkey-patch Gradio's UI notification functions to also print to console.
129129
# These only fire for validation/error messages, not generation progress.
@@ -147,8 +147,8 @@ def patched_error(message, *args, **kwargs):
147147
print(f"[Gradio] ERROR: {message}", file=sys.stderr, flush=True)
148148
return _orig_error(message, *args, **kwargs)
149149
gr.Error = patched_error
150-
except Exception:
151-
pass
150+
except Exception as e:
151+
print(f"[StabilityMatrix] Failed to patch Gradio logging: {e}", file=sys.stderr, flush=True)
152152
153153
if __name__ == "__main__":
154154
_apply_logging_patch()

0 commit comments

Comments
 (0)