mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-15 03:59:11 +00:00
57_CalDav.pm: catch error condition
git-svn-id: https://svn.fhem.de/fhem/trunk@18735 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
801ddb6d18
commit
2949d0cf68
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user