forked from ticketfrei/ticketfrei
don't spam the log if the network is failing
This commit is contained in:
parent
d5c801184c
commit
0dc0e915ee
|
@ -25,6 +25,8 @@ class MastodonBot(Bot):
|
||||||
return mentions
|
return mentions
|
||||||
try:
|
try:
|
||||||
notifications = m.notifications()
|
notifications = m.notifications()
|
||||||
|
except mastodon.MastodonNetworkError:
|
||||||
|
return mentions
|
||||||
except mastodon.MastodonInternalServerError:
|
except mastodon.MastodonInternalServerError:
|
||||||
try:
|
try:
|
||||||
logger.error("Mastodon Error: 500. Server: " + m.instance()['urls']['streaming_api'])
|
logger.error("Mastodon Error: 500. Server: " + m.instance()['urls']['streaming_api'])
|
||||||
|
|
Loading…
Reference in a new issue