]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Discovery::lookup now throws an exception
authorJames Walker <walkah@walkah.net>
Fri, 26 Feb 2010 20:38:48 +0000 (15:38 -0500)
committerJames Walker <walkah@walkah.net>
Fri, 26 Feb 2010 20:39:58 +0000 (15:39 -0500)
plugins/OStatus/classes/Ostatus_profile.php

index 35539bff770fb0fa8537bb00e23a8af86b6bbfc7..7b1aec76baa7eac9b73879b108b7e10a8eee85ff 100644 (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;
         }