From 9009d168cac5b1e1100568ee0c9d87cb53ddec31 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 7 Sep 2025 20:13:00 -0400 Subject: use log_error in pygmentize --- pypaste/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypaste/__main__.py b/pypaste/__main__.py index 4ee6f03..c9c5cff 100644 --- a/pypaste/__main__.py +++ b/pypaste/__main__.py @@ -70,7 +70,7 @@ def pygmentize( try: s = get_style_by_name(style) except Exception as e: - print(e, file=sys.stderr) + log_error(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