Commit 6ef2a0ee authored by Jarka Košanová's avatar Jarka Košanová

Add Gitlab::HTTP::BlockedUrlError to rescued

parent 7b4340f1
......@@ -414,7 +414,7 @@ class JiraService < IssueTrackerService
# Handle errors when doing Jira API calls
def jira_request
yield
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, Errno::ECONNREFUSED, URI::InvalidURIError, JIRA::HTTPError, OpenSSL::SSL::SSLError => error
rescue => error
@error = error
log_error("Error sending message", client_url: client_url, error: @error.message)
nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment