title: How to fix 'NoneType' object is not callable while returning wrapper function?
body: <pre><code>def func_needs_decorator():
      print(&quot;I wanna a decorator urgently&quot;)
      
  
  
  def new_decorator(original_funct):
      
      def wrapper_funct():
          print(&quot;Some extra code before the original function&quot;)
          original_funct()
          print(&quot;Some extra code after the original funciton&quot;)
      return wrapper_funct()     
  
  func_needs_decorator = new_decorator(func_needs_decorator)
  print(func_needs_decorator())
  
  &gt;&gt;&gt;'NoneType' object is not callable
  </code></pre>
  <p>I couldn't understand why I'm getting that error.Why am I getting that error?How can i fix it?Can you tell me the procces of this code?How does it work?</p>