summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-08-15 02:18:11 -0700
committerAlex Gaynor <alex.gaynor@rd.io>2012-08-15 02:18:11 -0700
commit52c351a151b7c7808d652581e97b40da7d700492 (patch)
tree02a6c973453710f64e95e8a77383a1f53d366516
parentfc99f127d88df9944e2cff4c36429290c3f32918 (diff)
Fixed the erorr handling code for missing management commands.
-rw-r--r--django/core/management/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py
index adf34971f9..98f75e0310 100644
--- a/django/core/management/__init__.py
+++ b/django/core/management/__init__.py
@@ -55,7 +55,7 @@ def find_management_module(app_name):
except ImportError as e:
if os.path.basename(os.getcwd()) != part:
raise e
- finally:
+ else:
if f:
f.close()