title: NoneType from logging module Python
body: <p>I am running this part of code successfully on the system that I wrote the code on. When testing the whole program on another computer (cloning the git), I get an error on the row starting with "logging.error".</p>
  
  <pre><code>import logging, logging.handlers
  
  def uncaught_errors(exctype, value, tb):
      logging.error("\nTYPE: "+str(exctype)+"\nVALUE: "+str(value)+"\nTRACEBACK: ".join(traceback.format_tb(tb)))
  
  sys.excepthook = uncaught_errors
  </code></pre>
  
  <p>The error states "'NoneType' object has no attribute 'error'"</p>
  
  <p>Why do I get the error?</p>