title: How to fix "IndentationError: expected an indented block" in Python?
body: <p>I am trying to do a API test on a URL with Python, I have the following code block</p>
  
  <pre><code>       def simple_get(url):
          try:
              page_response = requests.get(page_link, timeout=5)
              if page_response.status_code == 200:
              # extract
              else:
                  print(page_response.status_code)
                  # notify, try again
          except requests.Timeout as e:
              print("It is time to timeout")
              print(str(e))
          except # other exception
  </code></pre>
  
  <p>When I run it give me the following error</p>
  
  <pre><code>File "&lt;ipython-input-16-6291efcb97a0&gt;", line 11
  else:
     ^
  IndentationError: expected an indented block
  </code></pre>
  
  <p>I dont understand why is the notebook still asking for indentation when I already have the "else" statement indented</p>