From 0b5fbdc45cb3c44a7c98305ff12198894fdf192a Mon Sep 17 00:00:00 2001 From: Holger Trampe Date: Sat, 23 Oct 2021 16:15:02 +0200 Subject: [PATCH] error handling --- lib/AppInfo/Application.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 17392a9..a81f356 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -119,7 +119,11 @@ class LoginByNC extends Controller { ]; $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) { + // + } } }