title: how do I handle matching query does not exist when try catch doesnt work?
body: <p>I want to skip adding subtechnique if the parent technique is not on the database to avoid <code>matching query does not exist.</code> , but however if I use <code>.first or .exists</code> it doesnt work even with <code>if not ...</code> or try catch blocks keeps the same error where come from <code>Dmeo.objects.get_or_create(</code> how can I fix this issue?</p>
  <p>trace back</p>
  <pre><code>analizer         | apps.api.models.DoesNotExist: Dmeo matching query does not exist.
  
  analizer         | The above exception was the direct cause of the following exception:
  analizer         | 
  analizer         | Traceback (most recent call last):
  analizer         |   File &quot;updater.py&quot;, line 38, in &lt;module&gt;
  analizer         |     subtechnique, created = Dmeo.objects.get_or_create(
  </code></pre>
  <p>falling code</p>
  <pre><code>for subtechnique in src_subtechniques:
      for data_subtechniques in subtechnique:
          technique = Technique.objects.filter(technique_id=data_subtechniques['technique_id'].partition('.')[0]).exists()
          subtechnique, created = Dmeo.objects.get_or_create(
              subtechnique_id=data_subtechniques['technique_id'],
              technique_name=data_subtechniques['technique'],
              url=data_subtechniques['url'],
          )
  </code></pre>