tg_rss_bot/exceptions.py
Alexey Skobkin 2e44df0bbd
All checks were successful
continuous-integration/drone/push Build is passing
#2 #7 Telegram module (#10)
`telegram` module. Closes #2 #7.

Two service classes:

* `Notifier` class
* `CommandProcessor` class

Two [middlewares](https://github.com/eternnoir/pyTelegramBotAPI/tree/master/examples/middleware):

* `UserAuthMiddleware`
* `ExceptionHandlerMiddleware`

One exception for usage in the code called by the bot:

* `DisplayableException`

Merge **ONLY** after #9 is merged.

Reviewed-on: #10
Reviewed-by: Miroslavsckaya <miroslavsckaya@noreply.git.skobk.in>
2022-05-30 23:54:26 +03:00

3 lines
108 B
Python

class DisplayableException(Exception):
"""Exception which could be safely displayed to the end-user."""