Ignore faulty category tables
They don't have any categories anyway, so might aswell ignore the error.
This commit is contained in:
@@ -159,7 +159,15 @@ class Database(object):
|
|||||||
for ml in migrate_list:
|
for ml in migrate_list:
|
||||||
migrate_data[ml] = {}
|
migrate_data[ml] = {}
|
||||||
rows = migrate_list[ml]
|
rows = migrate_list[ml]
|
||||||
c.execute('SELECT %s FROM `%s`' % ('`' + '`,`'.join(rows) + '`', ml))
|
|
||||||
|
try:
|
||||||
|
c.execute('SELECT %s FROM `%s`' % ('`' + '`,`'.join(rows) + '`', ml))
|
||||||
|
except:
|
||||||
|
# ignore faulty destination_id database
|
||||||
|
if ml == 'category':
|
||||||
|
migrate_data[ml] = {}
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
for p in c.fetchall():
|
for p in c.fetchall():
|
||||||
columns = {}
|
columns = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user