MozillaItalia / mozitahub_bot

Il bot di Mozilla Italia Hub.
Creative Commons Zero v1.0 Universal
5 stars 8 forks source link

Migliorare gestione errori (try-except) #30

Closed Sav22999 closed 4 years ago

Sav22999 commented 5 years ago

Gestire le eccezioni in maniera più accurata, inviando anche l'eventuale soluzione al problema verificatosi, quando possibile.

(Es. cattura l'eccezione: telepot.exception.TelegramError: ("Bad Request: can't parse entities: Can't found end tag corresponding to start tag at byte offset 10", 400, {'ok': False, 'error_code': 400, 'description': "Bad Request: can't parse entities: Can't found end tag corresponding to start tag at byte offset 10"}, quindi restituire "Errore: è necessario chiudere tutti i tag html aperti", ecc.)

Sav22999 commented 4 years ago

✔️ migliorata nelle versioni precedenti