diff options
author | John Turner <jturner.usa@gmail.com> | 2025-09-07 20:13:00 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-09-07 20:13:00 -0400 |
commit | 9009d168cac5b1e1100568ee0c9d87cb53ddec31 (patch) | |
tree | c2f8ab020a423e403b6bb2fb54d03570dce2e8f9 | |
parent | eb32b6f7167b965354edd26aab1436439c668e03 (diff) | |
download | pypaste-9009d168cac5b1e1100568ee0c9d87cb53ddec31.tar.gz |
use log_error in pygmentize
-rw-r--r-- | pypaste/__main__.py | 2 |
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") |