summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/postrunner/EPO_Downloader.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/postrunner/EPO_Downloader.rb b/lib/postrunner/EPO_Downloader.rb
index 26e6e0d..327bff7 100644
--- a/lib/postrunner/EPO_Downloader.rb
+++ b/lib/postrunner/EPO_Downloader.rb
@@ -56,9 +56,15 @@ module PostRunner
private
def get_epo_from_server
- res = @http.request(@request)
+ begin
+ res = @http.request(@request)
+ rescue => e
+ Log.error "Extended Prediction Orbit (EPO) data download error: " +
+ e.message
+ return nil
+ end
if res.code.to_i != 200
- Log.error "Extended Orbit Prediction (EPO) data download failed: #{res}"
+ Log.error "Extended Prediction Orbit (EPO) data download failed: #{res}"
return nil
end
res.body