diff options
-rw-r--r-- | pypaste/__main__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pypaste/__main__.py b/pypaste/__main__.py index d002b5b..727087b 100644 --- a/pypaste/__main__.py +++ b/pypaste/__main__.py @@ -68,12 +68,12 @@ def pygmentize( lexer = guess_lexer(content) try: - style = get_style_by_name(style) + s = get_style_by_name(style) except Exception as e: print(e, file=sys.stderr) - style = "default" + s = get_style_by_name("default") - formatter = HtmlFormatter(full=True, style=style, linenos="table") + formatter = HtmlFormatter(full=True, style=s, linenos="table") return highlight(content, lexer, formatter) |