From: James Walker Date: Fri, 26 Feb 2010 20:38:48 +0000 (-0500) Subject: Discovery::lookup now throws an exception X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f23a877cd8ad8d583b74c312c7e9baa842b5a86a;p=quix0rs-gnu-social.git Discovery::lookup now throws an exception --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 35539bff77..7b1aec76ba 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -1288,9 +1288,9 @@ class Ostatus_profile extends Memcached_DataObject $disco = new Discovery(); - $result = $disco->lookup($addr); - - if (!$result) { + try { + $result = $disco->lookup($addr); + } catch (Exception $e) { self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), null); return null; }