mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +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):
|
||||
if hostname not in self._webfinger_support_cache:
|
||||
self._webfinger_support_cache[hostname] = ap.has_webfinger_support(
|
||||
hostname
|
||||
)
|
||||
try:
|
||||
self._webfinger_support_cache[hostname] = ap.has_webfinger_support(
|
||||
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]
|
||||
|
||||
def _get_actor(self, irc, username):
|
||||
|
Loading…
Reference in New Issue
Block a user