forked from GNUsocial/gnu-social
ActivityImporter gives up on any exception
This commit is contained in:
parent
2411caa000
commit
61fe49b100
@ -83,15 +83,9 @@ class ActivityImporter extends QueueHandler
|
||||
Event::handle('EndImportActivity',
|
||||
array($user, $author, $activity, $trusted));
|
||||
$done = true;
|
||||
} catch (ClientException $ce) {
|
||||
common_log(LOG_WARNING, $ce->getMessage());
|
||||
$done = true;
|
||||
} catch (ServerException $se) {
|
||||
common_log(LOG_ERR, $se->getMessage());
|
||||
$done = false;
|
||||
} catch (Exception $e) {
|
||||
common_log(LOG_ERR, $e->getMessage());
|
||||
$done = false;
|
||||
$done = true;
|
||||
}
|
||||
}
|
||||
return $done;
|
||||
|
Loading…
Reference in New Issue
Block a user