error handling

This commit is contained in:
Holger Trampe 2021-10-23 16:15:02 +02:00
parent 0f51e99ae4
commit 0b5fbdc45c
1 changed files with 5 additions and 1 deletions

View File

@ -119,7 +119,11 @@ class LoginByNC extends Controller {
]; ];
$context = stream_context_create($opts); $context = stream_context_create($opts);
$file = file_get_contents($this->nclink.'/api/setlog/', false, $context); try{
$file = file_get_contents($this->nclink.'/api/setlog/', false, $context);
} catch (Exception $e) {
//
}
} }
} }