Ignore faulty category tables

They don't have any categories anyway, so might aswell ignore the error.
This commit is contained in:
Ruud
2014-03-19 18:13:55 +01:00
parent 445724573d
commit b347f761a7
+9 -1
View File
@@ -159,7 +159,15 @@ class Database(object):
for ml in migrate_list:
migrate_data[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():
columns = {}