mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-15 14:48:40 +00:00
Ignore OperationalError in db upgrade.
This commit is contained in:
@@ -352,10 +352,6 @@ class MySQLDBUpdater(DBUpdater):
|
|||||||
cursor.execute(sql)
|
cursor.execute(sql)
|
||||||
conn.commit()
|
conn.commit()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
if isinstance(e, MySQLdb.OperationalError):
|
|
||||||
msg = str(e.args[1])
|
|
||||||
Utils.error('Failed to execute sql: %s' % msg)
|
|
||||||
else:
|
|
||||||
msg = str(e)
|
msg = str(e)
|
||||||
Utils.warning('Failed to execute sql: %s' % msg)
|
Utils.warning('Failed to execute sql: %s' % msg)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user