From bd95708f8d82521017bf58aa4b2488fcb3951ece Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 12 Oct 2019 12:54:06 +0300 Subject: [PATCH] Delete try_else.md --- snippets/try_else.md | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 snippets/try_else.md diff --git a/snippets/try_else.md b/snippets/try_else.md deleted file mode 100644 index 444fb556c..000000000 --- a/snippets/try_else.md +++ /dev/null @@ -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.") -``` -