Skip to content

Commit

Permalink
Notebook conversion bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Mar 8, 2018
1 parent 770b9d1 commit bf920b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciunit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def strip_line_magic(cls, line, magics_allowed):
stripped,magic_kind = cls.strip_line_magic_v3(line)
if line == stripped:
printd("No line magic pattern match in '%s'" % line)
if magic_kind not in magics_allowed:
if magic_kind and magic_kind not in magics_allowed:
stripped = "" # If the part after the magic won't work,
# just get rid of it
return stripped
Expand Down

0 comments on commit bf920b5

Please sign in to comment.