diff options
author | John Turner <jturner.usa@gmail.com> | 2025-09-07 21:46:52 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-09-07 21:46:52 -0400 |
commit | 6e259c0ec40a8d48cdc5a2a2d21c1dd0ca40039f (patch) | |
tree | 006509d2f037aba007b5d1f84b0ae3f3674c8a12 | |
parent | eb6819a5844b5be535c972c6824c7708498a7781 (diff) | |
download | pypaste-6e259c0ec40a8d48cdc5a2a2d21c1dd0ca40039f.tar.gz |
print a warning instead of an error when failing to find a style
-rw-r--r-- | pypaste/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |