diff options
Diffstat (limited to 'lib/gitlab/zentao')
-rw-r--r-- | lib/gitlab/zentao/client.rb | 6 |
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 } |