Project

General

Profile

« Previous | Next » 

Revision 1282

join: Fixed bug in "No join mapping" error generation where rows with no existing comments column would cause an IndexError

View differences:

bin/join
9 9
sys.path.append(os.path.dirname(__file__)+"/../lib")
10 10

  
11 11
import maps
12
import util
12 13

  
13 14
def main():
14 15
    try: _prog_name, map_1_path = sys.argv
......
57 58
            else:
58 59
                msg = 'No join mapping for '+row[1]
59 60
                warnings.warn(UserWarning(msg))
60
                row[2] = '** '+msg+' ** '+row[2]
61
                row[2] = '** '+msg+' ** '+util.list_setdefault(row, 2, '')
61 62
                row[1] = ''
62 63
        writer.writerow(row)
63 64

  

Also available in: Unified diff