Merge "version migration fails if version is an integer"

This commit is contained in:
Jenkins 2014-03-31 15:40:21 +00:00 committed by Gerrit Code Review
commit aa6fa5e975

View File

@ -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: