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 json
|
||||||
import requests
|
import requests
|
||||||
|
import logging
|
||||||
import emoji
|
import emoji
|
||||||
import base64
|
import base64
|
||||||
from os import environ
|
from os import environ
|
||||||
|
@ -33,7 +34,7 @@ class TestrailReport(BaseTestReport):
|
||||||
def get(self, method):
|
def get(self, method):
|
||||||
rval = requests.get(self.api_url + method, headers=self.headers).json()
|
rval = requests.get(self.api_url + method, headers=self.headers).json()
|
||||||
if 'error' in rval:
|
if 'error' in rval:
|
||||||
raise Exception('Failed request: %s' % rval['error'])
|
logging.error("Failed TestRail request: %s" % rval['error'])
|
||||||
return rval
|
return rval
|
||||||
|
|
||||||
def post(self, method, data):
|
def post(self, method, data):
|
||||||
|
|
Loading…
Reference in New Issue