Catch UnsupportedFormat exception