summaryrefslogtreecommitdiff
path: root/plugins/OStatus/classes/Ostatus_profile.php
diff options
context:
space:
mode:
authorJames Walker <walkah@walkah.net>2010-02-26 15:38:48 -0500
committerJames Walker <walkah@walkah.net>2010-02-26 15:39:58 -0500
commitf23a877cd8ad8d583b74c312c7e9baa842b5a86a (patch)
tree53f5231257ab337079e4b8885a376e3adcd27ac7 /plugins/OStatus/classes/Ostatus_profile.php
parent88ae7f53bb4470a899678d231cecb8cb963b2075 (diff)
Discovery::lookup now throws an exception
Diffstat (limited to 'plugins/OStatus/classes/Ostatus_profile.php')
-rw-r--r--plugins/OStatus/classes/Ostatus_profile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php
index 35539bff7..7b1aec76b 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;
}