mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-27 08:55:39 +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 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…
x
Reference in New Issue
Block a user