Skip to content

Commit

Permalink
Changes per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaditya Sharma committed Jun 10, 2019
1 parent ae6a5d0 commit a450439
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qds_sdk/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ class Error(Exception):
"""A general error derived from Exception."""

def __init__(self, request, message = ""):
response = request.text
if message:
response = message
response = message if message else request.text
Exception.__init__(self, response)
self.request = request

Expand Down

0 comments on commit a450439

Please sign in to comment.