mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fediverse: Catch URLErrors raised when checking webfinger support
This commit is contained in:
parent
689c633e92
commit
fffdd82571
@ -177,9 +177,15 @@ class Fediverse(callbacks.PluginRegexp):
|
|||||||
|
|
||||||
def _has_webfinger_support(self, hostname):
|
def _has_webfinger_support(self, hostname):
|
||||||
if hostname not in self._webfinger_support_cache:
|
if hostname not in self._webfinger_support_cache:
|
||||||
|
try:
|
||||||
self._webfinger_support_cache[hostname] = ap.has_webfinger_support(
|
self._webfinger_support_cache[hostname] = ap.has_webfinger_support(
|
||||||
hostname
|
hostname
|
||||||
)
|
)
|
||||||
|
except Exception as e:
|
||||||
|
self.log.error(
|
||||||
|
"Checking Webfinger support for %s raised %s", hostname, e
|
||||||
|
)
|
||||||
|
return False
|
||||||
return self._webfinger_support_cache[hostname]
|
return self._webfinger_support_cache[hostname]
|
||||||
|
|
||||||
def _get_actor(self, irc, username):
|
def _get_actor(self, irc, username):
|
||||||
|
Loading…
Reference in New Issue
Block a user