Catch all throwables in rename bot

This commit is contained in:
Daniil Gentili 2019-12-28 20:32:51 +01:00
parent e52d106dbc
commit e2fb6dbfe6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -146,7 +146,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
}
try {
yield $this->messages->editMessage(['peer' => $peerId, 'id' => $id, 'message' => 'Error: '.$e->getMessage()]);
} catch (\danog\MadelineProto\RPCErrorException $e) {
} catch (\Throwable $e) {
$this->logger((string) $e, \danog\MadelineProto\Logger::FATAL_ERROR);
}
}