title: ValueError: No JSON object could be decoded, but positive <Response [200]>
body: <p>I'm going over some URL's and I can fetch most of the data I can from an API I'm using. *Imgur API. However when it finds an image that has been posted before but was eventually removed it still shows a positive URL get response (code 200), and when I use </p>
  
  <pre><code>    j1 = json.loads(r_positive.text)
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>http://imgur.com/gallery/cJPSzbu.json
  &lt;Response [200]&gt;
  Traceback (most recent call last):
    File "image_poller_multiple.py", line 61, in &lt;module&gt;
      j1 = json.loads(r_positive.text)
    File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
      return _default_decoder.decode(s)
    File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
      raise ValueError("No JSON object could be decoded")
  ValueError: No JSON object could be decoded
  </code></pre>
  
  <p>How can I "fetch" the error inside the j1 variable instead? I'd like to use a conditional structure to solve the problem and avoid my program from crashing. Something like </p>
  
  <pre><code>if j1 == ValueError:
    continue
  else:
    do_next_procedures()
  </code></pre>