mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add CHANGES
This commit is contained in:
parent
46baa253d4
commit
9003353b9e
2 changed files with 2 additions and 3 deletions
1
CHANGES/1099.doc.rst
Normal file
1
CHANGES/1099.doc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Add error handling example `examples/error_handling.py`
|
||||
|
|
@ -3,10 +3,9 @@ import html
|
|||
import logging
|
||||
|
||||
from aiogram import Bot, Dispatcher, types
|
||||
from aiogram.filters import Command, ExceptionTypeFilter, CommandObject, ExceptionMessageFilter
|
||||
from aiogram.filters import Command, CommandObject, ExceptionMessageFilter, ExceptionTypeFilter
|
||||
from aiogram.types import ErrorEvent
|
||||
|
||||
|
||||
TOKEN = "42:TOKEN"
|
||||
|
||||
dp = Dispatcher()
|
||||
|
|
@ -19,7 +18,6 @@ class InvalidAge(Exception):
|
|||
|
||||
|
||||
class InvalidName(Exception):
|
||||
|
||||
def __init__(self, message: str):
|
||||
super().__init__(message)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue