57_CalDav.pm: catch error condition
git-svn-id: https://svn.fhem.de/fhem/trunk@18734 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -46,7 +46,9 @@ sub CalDav_Process($$$) {
|
||||
my $name = $hash->{NAME};
|
||||
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;
|
||||
|
||||
my $d = XML::LibXML->load_xml(string => $data);
|
||||
|
||||
foreach my $r ($d->findnodes('/d:multistatus/d:response/d:href')) {
|
||||
|
||||
Reference in New Issue
Block a user