From 52c351a151b7c7808d652581e97b40da7d700492 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 15 Aug 2012 02:18:11 -0700 Subject: [PATCH] Fixed the erorr handling code for missing management commands. --- django/core/management/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()