title: Python CGI script: Mail Sender
body: <p>I'm always getting this error while executing my py script </p>
  
  <blockquote>
    <p>File "mof.py", line 25
        for passwd in dictionary.read().split('\n'):
                                                   ^
    IndentationError: unindent does not match any outer indentation level</p>
  </blockquote>
  
  <p>Python Script</p>
  
  <p>try:
      sha1 = raw_input("\t\n\nsha1 Hash:")</p>
  
  <pre><code>try:
      dictionary = open("dictionary.txt","r")
  except(IOError):
      print "dictionary.txt not found!"
  for passwd in dictionary.read().split('\n'):
      if hashlib.sha1(passwd).hexdigest() == sha1:
  
          print("\n\t[OK]"+sha1+" : "+passwd+"\n")
          raw_input("Decrytion Success; Press Enter To Exit")
  
  else:
          print "\n\tFailed; Password not found in dictionary"
  
  
  except (KeyboardInterrupt):
  print "\n\t[+] Terminated by user"
  </code></pre>
  
  <p>Why?</p>