diff --git a/file_rename.py b/file_rename.py index 5814e8d..1c6ee71 100644 --- a/file_rename.py +++ b/file_rename.py @@ -40,10 +40,8 @@ # Skip the header lines if line.startswith('#'): continue - # Split the two columns, then write to key & value - else: - names = line.strip().split() - file_data[names[0]] = names[1] + names = line.strip().split() + file_data[names[0]] = names[1] except IOError as ex: print("File open issue: " + ex.strerror)