psychopy/psychopy — pull request #457 by djmannion (2013-12-14 02:27:04+00:00)
Title: BF: numpy.asarray was being called without numpy being imported

This was creating a NameError exception, which then wasn't being caught and was manifesting as a UnboundLocalError in the finally branch.