Skip to content

Commit

Permalink
Merge pull request #3256 from arianepaola/fix_3254
Browse files Browse the repository at this point in the history
Fixes #3254 Cookbook generation crashes using empty meta example files.
  • Loading branch information
karlnapf committed Jun 8, 2016
2 parents d270764 + de6e23a commit eb74aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/meta/generator/parse.py
Expand Up @@ -25,7 +25,7 @@ def parse(self, programString, filePath="Unknown"):
"""

# Add trailing endline if missing
if programString[-1] != "\n":
if len(programString) and programString[-1] != "\n":
programString += "\n"

# Parse program and add FilePath key to object
Expand Down

0 comments on commit eb74aaa

Please sign in to comment.