Skip to content

Commit

Permalink
Oops, found a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed May 12, 2017
1 parent 9c87dbe commit 4ccbc6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nikola/shortcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ def extract_shortcodes(data):
shortcodes = {}
splitted = _split_shortcodes(data)

if not data: # Empty
return '', {}

def extract_data_chunk(data):
"""Take a list of splitted shortcodes and return a string and a tail.
Expand Down

0 comments on commit 4ccbc6f

Please sign in to comment.