Skip to content

Commit

Permalink
2.5ize new pygmentized error simplate
Browse files Browse the repository at this point in the history
  • Loading branch information
pjz committed May 11, 2013
1 parent 2c0af63 commit cd9c0f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aspen/www/error.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ try:
from pygments.formatters import HtmlFormatter
from StringIO import StringIO
pygmentize = True
except ImportError as exc:
except ImportError:
from aspen.logging import log
import sys
exc = sys.exc_info()[1]
log("Cannot import pygments: " + str(exc))
pygmentize = False

Expand Down

0 comments on commit cd9c0f6

Please sign in to comment.