title: Error: Statement expected, found py: Dedent
body: <p>We are willing/ forced to develop a small Web App for the university. Now we started and everything seems to be fine, until the above strange error raises.</p>
  <blockquote>
  <p>Statement expected, found py: Dedent</p>
  </blockquote>
  <p>The error is raised by the following lines of code:</p>
  <pre class="lang-py prettyprint-override"><code>def get_reset_token(self, mysql, userid):
      try:
          conn = mysql.connect()
          cursor = conn.cursor()
          cursor.execute(&quot;&quot;&quot;SELECT token FROM tralala_reset_password 
                         WHERE uid=(%s)&quot;&quot;&quot;, userid)
          data = cursor.fetchall()
          cursor.close()
          conn.close()
          return data[0]
      except Exception as e:
          app.logger(str(e))
          return &quot;&quot;
  </code></pre>
  <p>PyCharm started to mark the <code>return &quot;&quot;</code> statement.</p>