Skip to content

Commit e1d6906

Browse files
Don't ignore the URISyntaxException instead, log it
1 parent b3fa840 commit e1d6906

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/net/javadiscord/javabot/systems/moderation

1 file changed

+2
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/moderation/AutoMod.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ public boolean hasSuspiciousLink(Message message) {
205205
if (uri.getHost() != null && spamUrls.contains(uri.getHost())) {
206206
return true;
207207
}
208-
} catch (URISyntaxException ignored) {
208+
} catch (URISyntaxException e) {
209+
log.error("Error while parsing URL: " + url, e);
209210
}
210211
}
211212
}

0 commit comments

Comments
 (0)