mirror of
https://github.com/devproje/px32-bot.git
synced 2024-11-26 10:43:05 +00:00
HOTFIX: when plugin loading to occurred exception
This commit is contained in:
parent
75a3b73993
commit
60965ee92e
2 changed files with 6 additions and 2 deletions
|
@ -2,7 +2,7 @@ kotlin.code.style=official
|
|||
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8
|
||||
|
||||
group=net.projecttl
|
||||
version=0.2.1-SNAPSHOT
|
||||
version=0.2.2-SNAPSHOT
|
||||
|
||||
ktor_version=2.3.12
|
||||
log4j_version=2.23.1
|
||||
|
|
|
@ -153,7 +153,11 @@ class CoreKernel(token: String) {
|
|||
|
||||
fun load() {
|
||||
parentDir.listFiles()?.forEach { file ->
|
||||
loadPlugin(file)
|
||||
try {
|
||||
loadPlugin(file)
|
||||
} catch (ex: Exception) {
|
||||
logger.error("error occurred while to plugin loading: ${ex.message}")
|
||||
}
|
||||
}
|
||||
|
||||
logger.info("Loaded ${plugins.size} plugins")
|
||||
|
|
Loading…
Reference in a new issue