Skip to content
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
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:
@charettes Collaborator

Is the if necessary now?

@alex Collaborator
alex added a note

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.
Something went wrong with that request. Please try again.