#120 closed defect (fixed)
djang-admin.py called without argument
| Reported by: | anonymous | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Tools | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Calling django-admin.py with no argument gives the following traceback:
Traceback (most recent call last):
File "./django-admin.py", line 102, in ?
main()
File "./django-admin.py", line 63, in main
print_error("An 'action' is required.")
TypeError: print_error() takes exactly 2 arguments (1 given)
And print_error function (defined line 43), effectively wants 2 arguments ;)
I'm using rev 249 of Django's trunk. Attached is a trivial proposed patch.
Attachments (1)
Change History (3)
by , 20 years ago
| Attachment: | fix_print_error.diff added |
|---|
comment:1 by , 20 years ago
Also, one extra carriage return at the end of the error string would be worth it ;)
Note:
See TracTickets
for help on using tickets.
the so called patch ;)