Discovery::lookup now throws an exception

This commit is contained in:
James Walker 2010-02-26 15:38:48 -05:00
parent 88ae7f53bb
commit f23a877cd8

View File

@ -1288,9 +1288,9 @@ class Ostatus_profile extends Memcached_DataObject
$disco = new Discovery(); $disco = new Discovery();
$result = $disco->lookup($addr); try {
$result = $disco->lookup($addr);
if (!$result) { } catch (Exception $e) {
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), null); self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), null);
return null; return null;
} }