Replace DbMigrationError with DBMigrationError
DbMigrationError is deprecated and will NOT be thrown in oslo.db since oslo.db >=4.27.0, DBMigrationError will be thrown instead. Consumers should catch DBMigrationError instead of DbMigrationError Depends-On: Iab0566cf9f4552e91fa417e64472fa106e8bc86d Depends-On: I0ebd69c3d778acb5bec9e136627e345e7fcf2bd3 Change-Id: Ic2fe5bd6be16d61df3257560c2072b075603672f
This commit is contained in:
parent
9ccc385d3b
commit
e34d50a446
|
@ -52,7 +52,7 @@ def get_current_legacy_head():
|
|||
legacy_head = sqla_migration.db_version(db_api.get_engine(),
|
||||
db_migration.MIGRATE_REPO_PATH,
|
||||
db_migration.INIT_VERSION)
|
||||
except db_exception.DbMigrationError:
|
||||
except db_exception.DBMigrationError:
|
||||
legacy_head = None
|
||||
return legacy_head
|
||||
|
||||
|
|
Loading…
Reference in New Issue