From 6e259c0ec40a8d48cdc5a2a2d21c1dd0ca40039f Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 7 Sep 2025 21:46:52 -0400 Subject: print a warning instead of an error when failing to find a style --- pypaste/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypaste/__init__.py b/pypaste/__init__.py index 36ca927..e8e6272 100644 --- a/pypaste/__init__.py +++ b/pypaste/__init__.py @@ -66,7 +66,7 @@ def pygmentize( try: s = get_style_by_name(style) except Exception as e: - log_error(f"failed to find style: {style}: {e}") + log_warning(f"failed to find style: {style}: {e}") s = get_style_by_name("default") formatter = HtmlFormatter(full=True, style=s, linenos="table") -- cgit v1.2.3