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
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}