From e63c94f27d92501021d46e206ab89847242b5010 Mon Sep 17 00:00:00 2001 From: Bibo-Joshi Date: Tue, 14 Apr 2020 18:17:39 +0200 Subject: [PATCH] Updated Exception Handling (markdown) --- Exception-Handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exception-Handling.md b/Exception-Handling.md index d7efa7e..31d17d7 100644 --- a/Exception-Handling.md +++ b/Exception-Handling.md @@ -58,7 +58,7 @@ For the last one you can check if your message is too long by comparing with `te ### Other exceptions -If a handler raises an uncaught exception that is not `TelegramError` (e.g. an `IndexError`), the exception will be caught and logged by the `Dispatcher`, so that the bot does not crash but you still have an indication of it and can address the issue. To take advantage of this, it is imperative to set up the `logging` module. +If a handler raises an uncaught exception that is no `TelegramError` (e.g. an `IndexError`), the exception will be caught and logged by the `Dispatcher`, so that the bot does not crash but you still have an indication of it and can address the issue. To take advantage of this, it is imperative to set up the `logging` module. Example code to set up the `logging` module: