mirror of https://github.com/coddrago/Heroku
Merge pull request #64 from Rilliat/v1.6.9
Changed incomprehensible error messages from telegram to readable bea…pull/68/head
commit
da1a6ce1c7
|
@ -68,6 +68,8 @@ def override_text(exception: Exception) -> typing.Optional[str]:
|
|||
"""Returns error-specific description if available, else `None`"""
|
||||
if isinstance(exception, NetworkError):
|
||||
return "✈️ <b>You have problems with internet connection on your server.</b>"
|
||||
if 'Telegram is having internal issues' in str(exception):
|
||||
return "✈️ <b>Telegram has problems with their datacenters.</b>"
|
||||
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue