update to 2.2.2 version

fix QQBot error
clean code
This commit is contained in:
jerry
2021-01-29 22:27:10 +08:00
parent a55cd4ed05
commit f3e844bb0a
11 changed files with 41 additions and 13 deletions

View File

@@ -104,10 +104,7 @@ class EventDispatcher
} catch (InterruptException $e) {
$this->store = $e->return_var;
$this->status = self::STATUS_INTERRUPTED;
} catch (Exception $e) {
$this->status = self::STATUS_EXCEPTION;
throw $e;
} catch (Error $e) {
} catch (Exception | Error $e) {
$this->status = self::STATUS_EXCEPTION;
throw $e;
}