1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Merge pull request #1272 from lohanidamodar/fix-remove-runtime-exception

fix warning
This commit is contained in:
Eldad A. Fux 2021-06-11 14:20:37 +03:00 committed by GitHub
commit c74a77422b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,6 @@ use Utopia\Storage\Device\Local;
use Utopia\Storage\Storage;
use Appwrite\ClamAV\Network;
use Appwrite\Event\Event;
use RuntimeException;
App::get('/v1/health')
->desc('Get HTTP')
@ -268,7 +267,7 @@ App::get('/v1/health/anti-virus')
'status' => (@$antiVirus->ping()) ? 'online' : 'offline',
'version' => @$antiVirus->version(),
]);
} catch( RuntimeException $e) {
} catch( \Exception $e) {
$response->json([
'status' => 'offline',
'version' => '',