mirror of
https://github.com/status-im/status-react.git
synced 2025-01-22 08:49:22 +00:00
don't raise exception on testrail api errors
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
cca2af6875
commit
119c5303a4
@ -1,5 +1,6 @@
|
||||
import json
|
||||
import requests
|
||||
import logging
|
||||
import emoji
|
||||
import base64
|
||||
from os import environ
|
||||
@ -33,7 +34,7 @@ class TestrailReport(BaseTestReport):
|
||||
def get(self, method):
|
||||
rval = requests.get(self.api_url + method, headers=self.headers).json()
|
||||
if 'error' in rval:
|
||||
raise Exception('Failed request: %s' % rval['error'])
|
||||
logging.error("Failed TestRail request: %s" % rval['error'])
|
||||
return rval
|
||||
|
||||
def post(self, method, data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user