Skip to content

Commit

Permalink
Don't crash on whitespace lines.
Browse files Browse the repository at this point in the history
Address bollwyvl#22.
  • Loading branch information
jaccarmac committed Sep 13, 2016
1 parent a47566a commit a19d27b
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[0] in "!%":
elif line[:1] in "!%":
# line magic
if chunk:
cell.append(self.compile_chunk(chunk))
Expand Down

0 comments on commit a19d27b

Please sign in to comment.