Skip to content

Commit

Permalink
Hancle empty lines properly.
Browse files Browse the repository at this point in the history
(Whitespace was handled, a really empty line was not.)

Address bollwyvl#22.
  • Loading branch information
jaccarmac committed Sep 13, 2016
1 parent a19d27b commit 98da0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hy_kernel/hy_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def do_execute(self, code, *args, **kwargs):
if line[:2] == "%%":
# cell magic
cell.append(line)
elif line[:1] in "!%":
elif len(line) > 0 and line[0] in "!%":
# line magic
if chunk:
cell.append(self.compile_chunk(chunk))
Expand Down

0 comments on commit 98da0c2

Please sign in to comment.