Skip to content

Commit

Permalink
Fix fetch_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Babak Gh committed Aug 24, 2020
1 parent 895b847 commit 929bd16
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/bing-ads-reporting/downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ def self.fetch_report(report_url)

def fetch_report
logger.debug "Downloading Bing report from: #{report_url}"
begin
response = HTTParty.get(report_url)
response.body
rescue StandardError => error
nil
end
response = HTTParty.get(report_url)
response.body
end
end
end

0 comments on commit 929bd16

Please sign in to comment.