From 01b1974f5077b15f6b4da1467fa8da1a3a943466 Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Fri, 15 Mar 2013 15:15:23 -0400 Subject: [PATCH] Address review comment --- common/lib/xmodule/xmodule/combined_open_ended_module.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/combined_open_ended_module.py b/common/lib/xmodule/xmodule/combined_open_ended_module.py index b7632ccffa..cd3f66efbc 100644 --- a/common/lib/xmodule/xmodule/combined_open_ended_module.py +++ b/common/lib/xmodule/xmodule/combined_open_ended_module.py @@ -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