Handling AkkomaNetworkError
This commit is contained in:
pare
7170f6592d
commit
e00c96263b
S'han modificat 1 arxius amb 3 adicions i 1 eliminacions
4
xmpp.py
4
xmpp.py
|
@ -1,5 +1,7 @@
|
||||||
from akkomabot import Akkomabot
|
from akkomabot import Akkomabot
|
||||||
from ejabberdapi import Ejabberd
|
from ejabberdapi import Ejabberd
|
||||||
|
from akkoma import AkkomaNetworkError
|
||||||
|
import sys
|
||||||
|
|
||||||
# main
|
# main
|
||||||
|
|
||||||
|
@ -13,7 +15,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
notifications = bot.akkoma.notifications()
|
notifications = bot.akkoma.notifications()
|
||||||
|
|
||||||
except bot.akkoma.AkkomaNetworkError as net_error:
|
except AkkomaNetworkError as net_error:
|
||||||
|
|
||||||
sys.exit(net_error)
|
sys.exit(net_error)
|
||||||
|
|
||||||
|
|
Loading…
Referencia en una nova incidència