Skip to content

Commit 237710f

Browse files
committed
đź”§ chore: update exception handling to catch Throwable in SpongeConfigManager
- change catch block from Exception to Throwable to handle broader error cases
1 parent 58ebf19 commit 237710f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎surf-api-core/surf-api-core/src/main/kotlin/dev/slne/surf/api/core/config/manager/SpongeConfigManager.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class SpongeConfigManager<C> private constructor(
245245
try {
246246
OldSpongeReflections.OLD_CONFIG_SERIALIZABLE_ANNOTATION // If this throws an exception, there are no none relocated annotations, no need to register — most likely the standalone version
247247
serializers.registerBackwardsCompatibleSerializers()
248-
} catch (_: Exception) {
248+
} catch (_: Throwable) {
249249
// no none relocated annotations, no need to register
250250
}
251251
}.shouldCopyDefaults(true)

0 commit comments

Comments
 (0)