diff options
-rwxr-xr-x | sqlite-notebook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite-notebook.py b/sqlite-notebook.py index 7f83f61..2bdc21c 100755 --- a/sqlite-notebook.py +++ b/sqlite-notebook.py @@ -12,7 +12,7 @@ class SqliteMarkdownRenderer(mistune.Renderer): self.conn = conn def block_code(self, code, lang): - if lang.strip().lower() == 'sql': + if lang and lang.strip().lower() == 'sql': # remove comment lines core = code.strip() code = '\n'.join( |