Update src/Appwrite/Extend/Exception.php

This commit is contained in:
Jake Barnby authored and GitHub committed 2024-04-30 12:25:29 +12:00
1 parent c7f2de6500
commit e6b6e4e54e
1 file changed
-1
-1
View File
@@ -302,7 +302,6 @@ class Exception extends \Exception
$this->type = $type;
$this->code = $code ?? $this->errors[$type]['code'];
// todo: Handle better PDOExceptions or string errors
if(\is_string($this->code) && !\is_numeric($this->code)) {
$this->code = 500;
}