This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients ned.deily
Date 2009-03-31.15:00:33
SpamBayes Score 1.0033793e-05
Marked as misclassified No
Message-id <1238511637.05.0.307555783931.issue5622@psf.upfronthosting.co.za>
In-reply-to
Content
wrong error from curses.wrapper if curses initialization fails

One way to reproduce is trying under IDLE.app in OS X:

  import curses
  def scr(a):
    a.getch()

  curses.wrapper(scr)

Traceback before patch:
  UnboundLocalError: local variable 'stdscr' referenced before 
assignment

Traceback after patch:
  _curses.error: setupterm: could not find terminal

APPLIES         2.6, 2.7, 3.0, 3.1
History
Date User Action Args
2009-03-31 15:00:37ned.deilysetrecipients: + ned.deily
2009-03-31 15:00:37ned.deilysetmessageid: <1238511637.05.0.307555783931.issue5622@psf.upfronthosting.co.za>
2009-03-31 15:00:35ned.deilylinkissue5622 messages
2009-03-31 15:00:35ned.deilycreate