title: Django: continuing block after exception
body: <p>How to continue the execution of a block after an exception.
  I have two vmware servers running
  I have created two functions, one that refreshes the information coming from the server and the other that populates the database.</p>
  <p>Except that when one of the servers does not respond
  an error occurs and the refresh is not done.</p>
  <pre><code>def vm_refresh(request):
      vmware_list = Vmware.objects.all()
      for i in vmware_list:
          vmwarepopulatevm(i)
          i.save()
      # ...
  
  def vcsapopulatevm(vmware):
      # ...
      req1 = vmrequestsget()
      if 'value' in req1.json().keys():
          for i in my req1.json()['value']:
              VirtualMachine.objects.update_or_create(vm=i['vm']
                                                      vmware=vmware,
                                                      defaults=i
                                                      )
      # ...
  </code></pre>
  <p>I tried somethink like this and it's works</p>
  <pre><code>try:
      vmwarepopulatevm(i)
      i.save()
  except Exception:
      pass
  </code></pre>
  <p>But I want to create a generic function because I will have to use it more often</p>