title: TypeError: argument of type 'NoneType' is not iterable in python
body: <p>I am trying to get the VM size of a running process and using the following simple script. Here initially I am trying to get the reference of that process. But getting the error as --     </p>
  
  <pre><code>if "DomainManager" in c:
  TypeError: argument of type 'NoneType' is not iterable
  </code></pre>
  
  <hr>
  
  <pre><code>import wmi
  
  computer = wmi.WMI ()
  
  for process in computer.Win32_Process ():
  
        c = process.CommandLine
        if "DomainManager" in c:
          print c
  </code></pre>
  
  <p>Would you please let me know the reason.</p>
  
  <p>Thanks,
  Rag</p>