mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix codestyle.
This commit is contained in:
parent
a5dc7b1a29
commit
6a1ef89aaa
2 changed files with 6 additions and 3 deletions
|
@ -82,9 +82,12 @@ class Webhook extends AbstractDaemon
|
|||
$promises[] = $this->guzzle_client->postAsync($message['url'], ['form_params' => $message['datas']]);
|
||||
}
|
||||
|
||||
try {
|
||||
try
|
||||
{
|
||||
$responses = \GuzzleHttp\Promise\unwrap($promises);
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
$this->logger->info('Webhook : ' . json_encode($message) . 'failed with ' . $e->getMessage());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue