Added error handling to Format117 - Fixes #18