Browse files

Fixed the erorr handling code for missing management commands.

  • Loading branch information...
1 parent fc99f12 commit 52c351a151b7c7808d652581e97b40da7d700492 @alex alex committed with Alex Gaynor Aug 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/management/
2 django/core/management/
@@ -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:
Django member
charettes added a line comment Aug 15, 2012

Is the if necessary now?

Django member
alex added a line comment Aug 15, 2012

Yes, find_module sometimes returns None for the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

0 comments on commit 52c351a

Please sign in to comment.