Handling AkkomaNetworkError

This commit is contained in:
spla 2022-08-09 22:31:19 +02:00
pare 7170f6592d
commit e00c96263b
S'han modificat 1 arxius amb 3 adicions i 1 eliminacions

Veure arxiu

@ -1,5 +1,7 @@
from akkomabot import Akkomabot
from ejabberdapi import Ejabberd
from akkoma import AkkomaNetworkError
import sys
# main
@ -13,7 +15,7 @@ if __name__ == '__main__':
notifications = bot.akkoma.notifications()
except bot.akkoma.AkkomaNetworkError as net_error:
except AkkomaNetworkError as net_error:
sys.exit(net_error)