mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2026-04-24 17:38:54 -05:00
Fix exception if you don't have pygments installed
This commit is contained in:
@@ -20,7 +20,10 @@ class SQLAlchemyDebugPanel(DebugPanel):
|
||||
Panel that displays the time a response took in milliseconds.
|
||||
"""
|
||||
name = 'SQLAlchemy'
|
||||
style = get_style_by_name('colorful')
|
||||
if HAVE_PYGMENTS:
|
||||
style = get_style_by_name('colorful')
|
||||
else:
|
||||
style = None
|
||||
|
||||
@property
|
||||
def has_content(self):
|
||||
|
||||
Reference in New Issue
Block a user