03.09.2010, 05:23
This happened to me once. There can be an error that will cause it to work sometimes and other times just stop right in the middle of the code. Try debugging it. Put in a series of prints to see how far it gets and to narrow down your error line. Although, maybe there's just a logic error.