Skip to content

Commit

Permalink
Update testrail.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrgurock committed Jul 16, 2019
1 parent 1e66354 commit 7a9e611
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/3.x/testrail.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def __send_request(self, method, uri, data):
except:
return ("Error saving attachment.")
else:
return response.json()
try:
return response.json()
except: # Nothing to return
return {}


class APIError(Exception):
Expand Down

0 comments on commit 7a9e611

Please sign in to comment.