title: I used the try/except function to overcome it but even after using the function I still get the error
body: <p>Im working on a project where there is an attribute error, so I used the try/except function to overcome it but even after using the function I still get the error. Help?</p>
  
  <pre><code>def info():
      while True:
          try:
             # something
          except AttributeError:
              print('Error')
  </code></pre>
  
  <p>Here is the error:</p>
  
  <pre><code>AttributeError: 'NoneType' object has no attribute 'group'
  </code></pre>