Project

General

Profile

« Previous | Next » 

Revision 4474

bin/map: Clearing errors table: Fixed bug where needed to check if sql_io.errors_table() returned None (indicating that the errors table didn't exist) before calling sql.drop_table()

View differences:

bin/map
343 343
                
344 344
                if start == 0 and n == None: # doing full re-import
345 345
                    log('Clearing errors table')
346
                    sql.drop_table(in_db, sql_io.errors_table(in_db, table))
346
                    errors_table_ = sql_io.errors_table(in_db, table)
347
                    if errors_table_ != None:
348
                        sql.drop_table(in_db, errors_table_)
347 349
                
348 350
                # Strip XML functions not in the DB
349 351
                xml_func.process(root, is_rel_func=is_rel_func)

Also available in: Unified diff