diff --git a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt index c28cfe738..02f54c3ea 100644 --- a/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt +++ b/mirai-console-wrapper/src/main/kotlin/net/mamoe/mirai/console/wrapper/Downloader.kt @@ -104,20 +104,13 @@ suspend fun HttpClient.downloadMavenPomAsString( version: String ):String{ return kotlin.runCatching { - Http.get( + this.get( aliyunPath.buildPath(groupName,projectName,version,"pom") ) }.getOrElse { - try { - Http.get( - aliyunPath.buildPath(groupName, projectName, version, "pom") - ) - }catch (e:Exception){ - if(e.message?.contains("404 Not Found") == true) { - return "" - } - throw e - } + this.get( + aliyunPath.buildPath(groupName, projectName, version, "pom") + ) } }