Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
temp reverting django-cms#2606 change as it is blowing up
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lee committed Feb 10, 2014
1 parent 6e823ba commit 859867c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cms/utils/django_load.py
Expand Up @@ -9,7 +9,6 @@
For documentation on how to use the functions described in this file, please
refer to http://django-load.readthedocs.org/en/latest/index.html.
"""
import imp
import traceback # changed

from django.conf import settings
Expand All @@ -23,7 +22,7 @@ def get_module(app, modname, verbose, failfast):
# the module *should* exist - raise an error if it doesn't
app_mod = import_module(app)
try:
imp.find_module(modname, app_mod.__path__)
module = import_module(module_name)
except ImportError:
# this ImportError will be due to the module not existing
# so here we can silently ignore it. But an ImportError
Expand All @@ -35,8 +34,6 @@ def get_module(app, modname, verbose, failfast):
traceback.print_exc() # changed
return None

module = import_module(module_name)

if verbose:
print(u"Loaded %r from %r" % (modname, app))
return module
Expand Down

0 comments on commit 859867c

Please sign in to comment.