#22256 closed Bug (fixed)
Crash in find_program when PATH isn't defined
Reported by: | Patrick Michaud | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
In django/core/management/utils.py, the line that determines entries in the PATH looks like this:
path = os.environ.get('PATH', []).split(os.pathsep)
The problem is when PATH isn't defined, it calls [].split(), which leads to this exception:
AttributeError: 'list' object has no attribute 'split'
There is a pull request for this issue at https://github.com/django/django/pull/2422
Change History (8)
comment:1 by , 11 years ago
Component: | Uncategorized → Core (Management commands) |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 11 years ago
When will this get fixed in stable/1.6.x and when will a new version of 1.6.x be released with it? Thanks
Note:
See TracTickets
for help on using tickets.
Left a comment on the pull request regarding the test.
Once that's fixed, I think this is ready for checkin.
Thanks.