Delete try_else.md

This commit is contained in:
Angelos Chalaris
2019-10-12 12:54:06 +03:00
committed by GitHub
parent 38529f33c8
commit bd95708f8d

View File

@ -1,18 +0,0 @@
---
title: Try else
tags: utility,intermediate
---
Rises an `exception` if it is caught in the `try` block.
You can have an else clause as part of a `try/except` block, which is executed if no `exception` is thrown.
```py
try:
5*6
except TypeError:
print("An exception was raised")
else:
print("No exceptions were raised.")
```