mirror of https://github.com/yandex/gixy
Allow empty config
parent
0317b39c95
commit
8974595fa1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue