From 2949d0cf68e2aedbc49a9de2aea35886b8e96c4d Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Mon, 25 Feb 2019 13:40:33 +0000 Subject: [PATCH] 57_CalDav.pm: catch error condition git-svn-id: https://svn.fhem.de/fhem/trunk@18735 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/57_CalDav.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/57_CalDav.pm b/fhem/FHEM/57_CalDav.pm index e471e8a55..c69c4faec 100644 --- a/fhem/FHEM/57_CalDav.pm +++ b/fhem/FHEM/57_CalDav.pm @@ -47,7 +47,10 @@ sub CalDav_Process($$$) { my $url = $hash->{URL}; my $options = $hash->{OPTIONS}; - return "Maybe this is the wrong way to use your calendar. Try 57_Calendar.pm instead." unless $data; + unless $data { + Log3 $hash,1,"CalDav: Maybe this is the wrong way to use your calendar. Try 57_Calendar.pm instead."; + return; + } my $d = XML::LibXML->load_xml(string => $data);