Skip to content

Commit

Permalink
Merge pull request #585 from nextcloud/backport/584/stable-2.5
Browse files Browse the repository at this point in the history
[stable-2.5] Do not throw RuntimeException if no connection to server is possible
  • Loading branch information
AndyScherzinger authored Mar 1, 2021
2 parents 7fa7caa + 0192f29 commit cc6047a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/com/nextcloud/common/OkHttpMethodBase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ abstract class OkHttpMethodBase(
response = client.client.newCall(request).execute()
} catch (ex: IOException) {
System.out.println(ex.message)
throw RuntimeException(ex)
}

return response?.code() ?: UNKNOWN_STATUS_CODE
Expand Down

0 comments on commit cc6047a

Please sign in to comment.