Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#120 closed defect (fixed) called without argument

Reported by: anonymous Owned by: adrian
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: UI/UX:


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@… 9 years ago.
the so called patch ;)

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by philippe.normand@…

the so called patch ;)

comment:1 Changed 9 years ago by anonymous

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

comment:2 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [252].

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.