title: How to handle "matching query does not exist" when getting an object
body: <p>When I want to select objects with a get() function like</p>
  
  <pre><code>personalProfile = World.objects.get(ID=personID)
  </code></pre>
  
  <p>If get function doesn't return find a value, a "matching query does not exist." error occurs.</p>
  
  <p>If I don't need this error, I'll use try and except function</p>
  
  <pre><code>try:
     personalProfile = World.objects.get(ID=personID)
  except:
     pass
  </code></pre>
  
  <p>But I think this is not the best way since I use </p>
  
  <pre><code>except:
        pass
  </code></pre>
  
  <p>Please recommend some idea or code sample to fight with this issue</p>