mirror of
https://github.com/django/django.git
synced 2025-06-05 19:49:13 +00:00
Fixed the erorr handling code for missing management commands.
This commit is contained in:
parent
fc99f127d8
commit
52c351a151
@ -55,7 +55,7 @@ def find_management_module(app_name):
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
if os.path.basename(os.getcwd()) != part:
|
if os.path.basename(os.getcwd()) != part:
|
||||||
raise e
|
raise e
|
||||||
finally:
|
else:
|
||||||
if f:
|
if f:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user