From a4504399655dd76cf568f61c8d25dd8cea3d2b2c Mon Sep 17 00:00:00 2001 From: Aaditya Sharma Date: Mon, 10 Jun 2019 15:12:38 +0530 Subject: [PATCH] Changes per comments --- qds_sdk/exception.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qds_sdk/exception.py b/qds_sdk/exception.py index cc802725..ef06a335 100644 --- a/qds_sdk/exception.py +++ b/qds_sdk/exception.py @@ -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