diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-09 15:11:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-09 15:11:57 +0300 |
commit | 1f229cdc22b5b32989bcff2037d8925c75703671 (patch) | |
tree | c92e9dff7737e78d7331518cdf69f90403af09ea /lib/gitlab/zentao | |
parent | 7a98d989740ec85982cdb6c1d57c8f24270e455e (diff) |
Add latest changes from gitlab-org/gitlab@master
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 } |