Permalink
Browse files

Handles responses with no payload more robustly

  • Loading branch information...
1 parent eb46225 commit 86a9bd0453f90355a3d694c53a9f468f0704a04f Dave Esposito committed Jan 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/jira_crawler/lib/jira_crawler/crisply_api.rb
@@ -67,7 +67,7 @@ def post_activity activity_item
logger.warn "Unable to POST activity: #{xml}\nResponse:#{e.response.body}"
end
rescue RestClient::InternalServerError, RestClient::RequestFailed, RestClient::Request::Unauthorized => e
- logger.error e.response.body
+ logger.error e.response.body if e.response
raise e
end

0 comments on commit 86a9bd0

Please sign in to comment.