Skip to content

Commit

Permalink
build: 1.5.8-M1
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Oct 20, 2022
1 parent 70c1089 commit 213991f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.cssxsh"
version = "1.5.8"
version = "1.5.9-M1"

mavenCentralPublish {
useCentralS01()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import net.mamoe.mirai.utils.*
import xyz.cssxsh.mirai.weibo.data.*

object WeiboHelperPlugin : KotlinPlugin(
JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.5.8") {
JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.5.9") {
name("weibo-helper")
author("cssxsh")
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/xyz/cssxsh/mirai/weibo/WeiboSubscriber.kt
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ abstract class WeiboSubscriber<K : Comparable<K>>(val type: String) : CoroutineS
} catch (exception: SerializationException) {
logger.warning({ "$type(${id})监听任务序列化时失败" }, exception)
sendLoginMessage("$type(${id})监听任务序列化时失败")
continue
} catch (exception: UnknownHostException) {
//
logger.warning({ "$type(${id})监听任务, 网络异常" }, exception)
} catch (exception: SocketException) {
logger.warning({ "$type(${id})监听任务, 网络异常" }, exception)
} catch (exception: Exception) {
logger.warning({ "WEIBO登陆状态将刷新" }, exception)
try {
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/xyz/cssxsh/mirai/weibo/WeiboUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ internal val ClientIgnore: suspend (Throwable) -> Boolean = { throwable ->
is UnknownHostException,
is NoRouteToHostException -> false
is okhttp3.internal.http2.StreamResetException -> true
is IOException -> {
logger.warning { "WeiboClient Ignore $throwable" }
is SocketException -> {
logger.warning { "Weibo Client Ignore $throwable" }
true
}
else -> false
Expand Down

0 comments on commit 213991f

Please sign in to comment.