catching more exceptions when trying to create urls
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -295,7 +295,7 @@ public class MariaDB implements Database {
|
|||||||
var url = URI.create(u).toURL();
|
var url = URI.create(u).toURL();
|
||||||
var description = rs.getString(DESCRIPTION);
|
var description = rs.getString(DESCRIPTION);
|
||||||
event.addLinks(new Link(url, description));
|
event.addLinks(new Link(url, description));
|
||||||
} catch (MalformedURLException e) {
|
} catch (Exception e) {
|
||||||
LOG.log(WARNING, () -> "Failed to convert %s to URI!".formatted(u));
|
LOG.log(WARNING, () -> "Failed to convert %s to URI!".formatted(u));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user