lib/embulk/input/jira_api/client.rb in embulk-input-jira-0.2.1 vs lib/embulk/input/jira_api/client.rb in embulk-input-jira-0.2.2
- old
+ new
@@ -65,10 +65,12 @@
case title
when "Atlassian Cloud Notifications - Page Unavailable"
# a.k.a. HTTP 503
raise title
when "Unauthorized (401)"
- raise Embulk::ConfigError.new("JIRA returns error: #{title}")
+ Embulk.logger.warn "JIRA returns error: #{title}"
+ count += 1
+ retry
end
else
# (b)
count += 1
retry