title: PyCharm: Unreachable Code?
body: <p>PyCharm is showing me that some code is unreachable within a method before the return statement is reached. I cannot help but wonder how is that even remotely possible?</p>
  
  <pre><code>def post(self):
      # get the desired parameters
      username = self.request.get('user')
      password = self.request.get('pass')
  
      if not self.REGEX.match(username) or not self.REGEX.match(password):
          logging.debug('RegistrationHandler: Bad credentials -&gt;', username, password)
          self.fail('bad username or password')
  
          print 'Blah' # &lt;---- shows as UNREACHABLE ?
          return # &lt;---- shows as UNREACHABLE ?
  </code></pre>
  
  <p><code>self.fail</code> simply calls <code>self.response.write(things)</code>.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Yeah, when I surround it with a try/catch clause, the issue is resolved... Strange. (Note that the method doesn't <em>always</em> raise an exception.</p>