Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pyeapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,10 @@ def _chunkify( self, config, indent=0 ):
last parsed (sub)section, which in turn may contain sub-sections
"""
def is_subsection_present( section, indent ):
return any( [line[ indent ] == ' ' for line in section] )
try:
return any( [line[ indent ] == ' ' for line in section] )
except IndexError:
return False
sections = {}
key = None
for line in config.splitlines( keepends=True )[ indent > 0: ]:
Expand Down