added importer for FHaus and Psychochor

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-01-02 12:28:14 +01:00
parent 3f80b13d8e
commit 2491e4fbf0
10 changed files with 421 additions and 24 deletions
@@ -11,9 +11,7 @@ import de.srsoftware.cal.api.Coords;
import de.srsoftware.tools.Payload;
import de.srsoftware.tools.Result;
import de.srsoftware.tools.Tag;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.time.LocalDate;
import java.time.LocalDateTime;
@@ -190,7 +188,7 @@ public class Util {
var url = urlResult.optional().get();
try {
return Payload.of(new URI(url).toURL());
} catch (MalformedURLException | URISyntaxException e) {
} catch (Exception e) {
return error(e, "Failed to create URL of %s", url);
}
}