summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-07 20:13:00 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-07 20:13:00 -0400
commit9009d168cac5b1e1100568ee0c9d87cb53ddec31 (patch)
treec2f8ab020a423e403b6bb2fb54d03570dce2e8f9
parenteb32b6f7167b965354edd26aab1436439c668e03 (diff)
downloadpypaste-9009d168cac5b1e1100568ee0c9d87cb53ddec31.tar.gz
use log_error in pygmentize
-rw-r--r--pypaste/__main__.py2
1 files changed, 1 insertions, 1 deletions
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")