mirror of
https://github.com/dalbodeule/sh0rt.kr-pdns.git
synced 2025-06-08 18:58:20 +00:00
fix pdns api clients (retry 12x)
This commit is contained in:
parent
b86f2f9582
commit
af304197f1
@ -38,7 +38,7 @@ class PowerDNSAPIClient() {
|
||||
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
throw gson.fromJson(response.body?.string(), Error::class.java)
|
||||
throw gson.fromJson(response.body?.string(), PowerDNSAPIError::class.java)
|
||||
}
|
||||
return response
|
||||
}
|
||||
@ -54,7 +54,7 @@ class PowerDNSAPIClient() {
|
||||
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
throw gson.fromJson(response.body?.string(), Error::class.java)
|
||||
throw gson.fromJson(response.body?.string(), PowerDNSAPIError::class.java)
|
||||
}
|
||||
return response
|
||||
}
|
||||
@ -94,7 +94,7 @@ class PowerDNSAPIClient() {
|
||||
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
throw gson.fromJson(response.body?.string(), Error::class.java)
|
||||
throw gson.fromJson(response.body?.string(), PowerDNSAPIError::class.java)
|
||||
}
|
||||
return response
|
||||
}
|
||||
@ -110,7 +110,7 @@ class PowerDNSAPIClient() {
|
||||
|
||||
val response = client.newCall(request).execute()
|
||||
if(!response.isSuccessful) {
|
||||
throw gson.fromJson(response.body?.string(), Error::class.java)
|
||||
throw gson.fromJson(response.body?.string(), PowerDNSAPIError::class.java)
|
||||
}
|
||||
return response
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user