From 3acff0a77ab0ab14e0d55e380f98cfa77977fc18 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 3 Jul 2013 16:27:30 -0400 Subject: [PATCH] remove unnecessary type check on the module store. XML module stores will throw an exception when deleting an item... --- common/lib/xmodule/xmodule/modulestore/store_utilities.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/store_utilities.py b/common/lib/xmodule/xmodule/modulestore/store_utilities.py index e568405593..2ac80b2b8b 100644 --- a/common/lib/xmodule/xmodule/modulestore/store_utilities.py +++ b/common/lib/xmodule/xmodule/modulestore/store_utilities.py @@ -137,10 +137,6 @@ def delete_course(modulestore, contentstore, source_location, commit=False): courseware store. BE VERY CAREFUL, this is not reversable. """ - # first check to see if the modulestore is Mongo backed - if not isinstance(modulestore, MongoModuleStore): - raise Exception("Expected a MongoModuleStore in the runtime. Aborting....") - # check to see if the source course is actually there if not modulestore.has_item(source_location): raise Exception("Cannot find a course at {0}. Aborting".format(source_location))