Merge "version migration fails if version is an integer"
This commit is contained in:
commit
aa6fa5e975
@ -44,7 +44,7 @@ def upgrade(migrate_engine):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
dt = time.strptime(version, '%Y-%m-%d')
|
dt = time.strptime(version, '%Y-%m-%d')
|
||||||
except ValueError:
|
except (TypeError, ValueError):
|
||||||
dt = None
|
dt = None
|
||||||
|
|
||||||
if dt is None or dt < patch_date:
|
if dt is None or dt < patch_date:
|
||||||
|
Loading…
Reference in New Issue
Block a user