Update migrate_config.py
Added if statement to prevent looping through header lines if configuration file is empty
@@ -21,6 +21,8 @@ def _migrate_map(contents):
# Find the first non-header line
lines = contents.splitlines(True)
i = 0
+ # Only loop on non empty configuration file
+ if i < len(lines):
while _is_header_line(lines[i]):
i += 1
