title: Python except statement not printing
body: <p>Can't get except statement to print when user doesn't enter a '?' or does an invalid entry.</p>
  
  <pre><code>def crossWord():
      try:
          word = strInput("Crossword Solver \nuse ? as a wildcard: ")
          w = word.lower()
          f=open("wordlist.txt", "r")
          for line in f:
              line=line.strip()
              if len(line)==len(w):
                  good=1
                  pos=0
                  for letter in w:
                      if not letter== '?':
                          if not letter==line[pos]:
                              good=0
                      pos+=1
                  if good==1:
                      print(line)
      except: 
          if line == None:
              print("No words could be found. Remember to separate with '?'")
      finally:
          f.close()
  </code></pre>