#11504 closed defect (fixed)
AttributeError: 'NoneType' object has no attribute 'get_similar_commands'
Reported by: | Ryan J Ollos | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 0.12.6 |
Component: | admin/console | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fix an |
||
API Changes: | |||
Internal Changes: |
Description
When running the command:
trac-admin $env help $cmd
the following output results for the case that $env
is not a valid environment and $cmd
is not a valid command:
$ trac-admin noenv help nocmd No documentation found for 'nocmd'. Use 'help' to see the list of commands. AttributeError: 'NoneType' object has no attribute 'get_similar_commands'
Prior to [12277], a different error would result:
$ trac-admin noenv help nocmd No documentation found for 'nocmd'. Use 'help' to see the list of commands. UnboundLocalError: local variable 'cmd_mgr' referenced before assignment
Thanks to Olemis Lang for initial investigating of the issue, which was reported in bloodhound:#762.
Attachments (0)
Change History (5)
comment:1 by , 11 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 11 years ago
Milestone: | 1.0.2 → 0.12.6 |
---|
Trac 0.12.4 and later have the same issue. That is introduced in [11165].
$ ~/venv/trac/0.12.5/bin/trac-admin /notfound help nocmd No documentation found for 'nocmd'. Use 'help' to see the list of commands. UnboundLocalError: local variable 'cmd_mgr' referenced before assignment $ ~/venv/trac/0.12.4/bin/trac-admin /notfound help nocmd No documentation found for 'nocmd'. Use 'help' to see the list of commands. UnboundLocalError: local variable 'cmd_mgr' referenced before assignment $ ~/venv/trac/0.12.3/bin/trac-admin /notfound help nocmd No documentation found for 'nocmd'
comment:4 by , 11 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Committed in [12540] and merged in [12541-12542].
comment:5 by , 11 years ago
The changes look good and test out well on my end. Thanks for the quick fix!
Thanks for investigating. Wrong handling with non-existent path on help command. I'll fix it.