catch all exceptions
This commit is contained in:
parent
8e3fcb120f
commit
2d469e39af
2 changed files with 6 additions and 0 deletions
|
@ -151,6 +151,9 @@ class GetSharedSecret extends QueuedJob{
|
|||
} catch (ClientException $e) {
|
||||
$status = $e->getCode();
|
||||
$this->logger->logException($e);
|
||||
} catch (\Exception $e) {
|
||||
$status = HTTP::STATUS_INTERNAL_SERVER_ERROR;
|
||||
$this->logger->logException($e);
|
||||
}
|
||||
|
||||
// if we received a unexpected response we try again later
|
||||
|
|
|
@ -149,6 +149,9 @@ class RequestSharedSecret extends QueuedJob {
|
|||
} catch (ClientException $e) {
|
||||
$status = $e->getCode();
|
||||
$this->logger->logException($e);
|
||||
} catch (\Exception $e) {
|
||||
$status = HTTP::STATUS_INTERNAL_SERVER_ERROR;
|
||||
$this->logger->logException($e);
|
||||
}
|
||||
|
||||
// if we received a unexpected response we try again later
|
||||
|
|
Loading…
Reference in a new issue