File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def _makeRequest(self,
116116 }]
117117 })
118118
119- if response .status_code is 204 :
119+ if response .status_code == 204 :
120120 return {}
121121
122122 self .__checkResponseHeaderContentType (response )
@@ -211,7 +211,7 @@ def __checkResponseHeaderContentType(self, response):
211211
212212 contentType = response .headers ['Content-Type' ]
213213 expectedContentType = 'application/jose+json' if self .encrypted else 'application/json'
214- invalidContentType = response .status_code is not 204 and contentType is not None and expectedContentType not in contentType
214+ invalidContentType = response .status_code != 204 and contentType is not None and expectedContentType not in contentType
215215 if (invalidContentType ):
216216 raise HyperwalletAPIException ('Invalid Content-Type specified in Response Header' )
217217
You can’t perform that action at this time.
0 commit comments