Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#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)

fix_print_error.diff (443 bytes ) - added by philippe.normand@… 19 years ago.
the so called patch ;)

Download all attachments as: .zip

Change History (3)

by philippe.normand@…, 19 years ago

Attachment: fix_print_error.diff added

the so called patch ;)

comment:1 by anonymous, 19 years ago

Also, one extra carriage return at the end of the error string would be worth it ;)

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [252].

Note: See TracTickets for help on using tickets.
Back to Top