More explicit catch
This commit is contained in:
parent
f7a1c8a94c
commit
00ace6c2df
@ -397,8 +397,8 @@ class ActivityUtils
|
|||||||
// the exception thrown will cancel before reaching $object
|
// the exception thrown will cancel before reaching $object
|
||||||
$object = call_user_func(array($object, 'fromUri'), $uri);
|
$object = call_user_func(array($object, 'fromUri'), $uri);
|
||||||
break;
|
break;
|
||||||
} catch (Exception $e) {
|
} catch (UnknownUriException $e) {
|
||||||
common_debug('Could not find local activity object from uri: '.$uri);
|
common_debug('Could not find local activity object from uri: '.$e->object_uri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!empty($object)) {
|
if (!empty($object)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user