Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove a try wrapper that was hiding project settings import failures

  • Loading branch information...
commit ec1da7b401a335f43129e7115fe7a4d145649f1e 1 parent 740a418
@bretth authored
Showing with 11 additions and 13 deletions.
  1. +11 −13 bin/woven-admin.py
View
24 bin/woven-admin.py
@@ -191,19 +191,17 @@ def start_distribution(project_name, template_dir, dist, noadmin):
if settings_mod:
os.environ['DJANGO_SETTINGS_MODULE'] = settings_mod
- try:
- from django.conf import settings
- settings.INSTALLED_APPS += ('woven',)
-
- #switch to the settings module directory
- proj = settings_mod.split('.')[0]
- proj_mod = import_module(proj)
- if not proj_mod:
- sys.exit(0)
- moddir = os.path.dirname(proj_mod.__file__)
- os.chdir(moddir)
- except ImportError, ValueError:
- pass
+ from django.conf import settings
+ settings.INSTALLED_APPS += ('woven',)
+
+ #switch to the settings module directory
+ proj = settings_mod.split('.')[0]
+ proj_mod = import_module(proj)
+ if not proj_mod:
+ sys.exit(0)
+ moddir = os.path.dirname(proj_mod.__file__)
+ os.chdir(moddir)
+
if startproject:
if not options.nosyncdb:
Please sign in to comment.
Something went wrong with that request. Please try again.