fix: crash on comments api connection failure

This commit is contained in:
rebelonion 2024-02-22 21:13:12 -06:00
parent 6c14a2eccf
commit 4628282715
2 changed files with 8 additions and 2 deletions

View file

@ -34,8 +34,8 @@ class NetworkHelper(
maxSize = 5L * 1024 * 1024, // 5 MiB
),
)
.addInterceptor(BrotliInterceptor)
.addInterceptor(UncaughtExceptionInterceptor())
.addInterceptor(BrotliInterceptor)
.addInterceptor(UserAgentInterceptor(::defaultUserAgentProvider))
if (PrefManager.getVal(PrefName.VerboseLogging)) {