Allow empty config

pull/37/head
Andrew Krasichkov 2017-05-13 14:18:45 +03:00
parent 0317b39c95
commit 8974595fa1
1 changed files with 4 additions and 1 deletions

View File

@ -26,8 +26,11 @@ class RawParser(object):
"""
Returns the parsed tree.
"""
content = data.strip()
if not content:
return []
return self.script.parseString(data, parseAll=True)
return self.script.parseString(content, parseAll=True)
@cached_property
def script(self):