quantopian/zipline — pull request #371 by CaptainKanuk (2014-07-15 17:39:42+00:00)
Title: ENH: Added exception for a portfolio access before setup.

Calling portfolio in setup previously resulted in an
uninformative KeyError. It now informs the user that the
portfolio object has not been assigned at the time of access.