adding try except for printing error message accurately as described in the issue
adding try except for printing error message accurately as described in the issue

tensorflow/estimator,tensorflow/estimator