don't raise exception on testrail api errors

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-07-03 11:28:16 -04:00
parent cca2af6875
commit 119c5303a4
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 1 deletions

View File

@ -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):