PreHPCC fixed typo line 252. Added try-except.