Skip to content

Commit 0ceab62

Browse files
author
Erick Sapp
committed
Adjusted exception handler.
1 parent e9b6861 commit 0ceab62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SoftLayer/transports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def __call__(self, request):
396396
try:
397397
message = json.loads(ex.response.text)['error']
398398
request.url = ex.response.url
399-
except Exception as json_ex:
399+
except ValueError as json_ex:
400400
if ex.response.text == "":
401401
raise exceptions.SoftLayerAPIError(resp.status_code, "Empty response.")
402402
else:

0 commit comments

Comments
 (0)