We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aadd735 commit 8f2f992Copy full SHA for 8f2f992
composeApp/src/commonMain/kotlin/de/kitshn/api/tandoor/model/recipe/TandoorRecipe.kt
@@ -35,7 +35,6 @@ import kotlinx.serialization.json.buildJsonObject
35
import kotlinx.serialization.json.decodeFromJsonElement
36
import kotlinx.serialization.json.jsonPrimitive
37
import kotlinx.serialization.json.put
38
-import okio.ProtocolException
39
40
@Serializable
41
class TandoorRecipe(
@@ -166,7 +165,7 @@ class TandoorRecipe(
166
165
})
167
if(servings != null) put("servings", servings)
168
169
- }catch(ex: ProtocolException) {
+ } catch (ex: Exception) {
170
// prevent HTTP 204 had non-zero Content-Length exception
171
if(ex.message?.contains("HTTP 204") == true) return
172
throw ex
0 commit comments