Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the erorr handling code for missing management commands.

  • Loading branch information...
commit 52c351a151b7c7808d652581e97b40da7d700492 1 parent fc99f12
@alex alex authored Alex Gaynor committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/management/__init__.py
View
2  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:
@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
f.close()
@charettes

Is the if necessary now?

@alex

Yes, find_module sometimes returns None for the file.

Please sign in to comment.
Something went wrong with that request. Please try again.