Add handler for exceptions on thread update related to cookies block (see also #258)

This commit is contained in:
Fedor A. Fetisov 2021-08-27 15:00:22 +03:00
parent fd94b0108c
commit 0c416c7d7c

View File

@ -240,6 +240,9 @@ abstract class AbstractProcessor
return $this->buildSyncResponses($this->responses); return $this->buildSyncResponses($this->responses);
} }
} }
} catch (\Exception $e) {
// Looks like a try to use chat with blocked cookies or something, return 403
return new Response('Update forbidden', Response::HTTP_FORBIDDEN);
} catch (\Exception $e) { } catch (\Exception $e) {
// Something went wrong. Trigger error event // Something went wrong. Trigger error event
$vars = array('exception' => $e); $vars = array('exception' => $e);