Actually, we should change this try except block to something like this:

```python
resp_data = resposne.read()
try:
    resp_json = json.loads(resp_data)
except ValueError:
    self.printAPIError(resp_data)
```

This will print the API error code instead of a json parse error.