Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/zentao/client.rb')
-rw-r--r--lib/gitlab/zentao/client.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/zentao/client.rb b/lib/gitlab/zentao/client.rb
index 4da4631eecf..0c2b3049670 100644
--- a/lib/gitlab/zentao/client.rb
+++ b/lib/gitlab/zentao/client.rb
@@ -15,7 +15,11 @@ module Gitlab
end
def ping
- response = fetch_product(zentao_product_xid) rescue {}
+ response = begin
+ fetch_product(zentao_product_xid)
+ rescue StandardError
+ {}
+ end
active = response['deleted'] == '0'
if active
{ success: true }