Address review comment

This commit is contained in:
Vik Paruchuri
2013-03-15 15:15:23 -04:00
parent b609ab0e6a
commit 01b1974f50

View File

@@ -35,9 +35,7 @@ class VersionInteger(Integer):
try:
value = int(value)
versions = [i[0] for i in VERSION_TUPLES]
try:
versions.index(value)
except:
if value not in versions:
version_error_string = "Could not find version {0}, using version {1} instead"
log.error(version_error_string.format(value, DEFAULT_VERSION))
value = DEFAULT_VERSION