Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#120 closed defect (fixed) 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


Calling with no argument gives the following traceback:

Traceback (most recent call last):
  File "./", line 102, in ?
  File "./", 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@… 15 years ago.
the so called patch ;)

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by philippe.normand@…

Attachment: fix_print_error.diff added

the so called patch ;)

comment:1 Changed 15 years ago by anonymous

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

comment:2 Changed 15 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

Fixed in [252].

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