title: Python 3 handling error TypeError: catching classes that do not inherit from BaseException is not allowed
body: <p>When I run this code:</p>
  <pre><code>i=0
  while i&lt;5:
      i=i+1;
      try:
          SellSta=client.get_order(symbol=Symb,orderId=SellOrderNum,recvWindow=Delay)
      except client.get_order as e:
          print (&quot;This is an error message!{}&quot;.format(i))
  #End while
  </code></pre>
  <p>I got this error:</p>
  <pre><code>TypeError: catching classes that do not inherit from BaseException is not allowed
  </code></pre>
  <p>I read this tread <a href="https://stackoverflow.com/questions/18163697/exception-typeerror-warning-sometimes-shown-sometimes-not-when-using-throw-meth/18163759#18163759">Exception TypeError warning sometimes shown, sometimes not when using throw method of generator</a> and this one <a href="https://stackoverflow.com/questions/31713054/cant-catch-mocked-exception-because-it-doesnt-inherit-baseexception">Can&#39;t catch mocked exception because it doesn&#39;t inherit BaseException</a> also read this <a href="https://medium.com/python-pandemonium/a-very-picky-except-in-python-d9b994bdf7f0" rel="noreferrer">https://medium.com/python-pandemonium/a-very-picky-except-in-python-d9b994bdf7f0</a></p>
  <p>I kind of fix it with this code:</p>
  <pre><code>i=0
  while i&lt;5:
      i=i+1;
      try:
          SellSta=client.get_order(symbol=Symb,orderId=SellOrderNum,recvWindow=Delay)
      except:
          print (&quot;This is an error message!{}&quot;.format(i))
  #End while
  </code></pre>
  <p>The result it's that ignores the error and go to the next while but I want to catch the error and print it.</p>