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 a396715 commit afb1cdaCopy full SHA for afb1cda
src/main/kotlin/com/stefanbratanov/sofiasupermarketsapi/brochure/FantasticoBrochureDownloader.kt
@@ -80,10 +80,11 @@ class FantasticoBrochureDownloader(@Value("\${fantastico.url}") private val url:
80
val flippingBookUrl = it.attr("data-url")
81
82
// loading the flipping book
83
- repeat(3) {
84
- try {
85
- driver.get(flippingBookUrl)
86
- } catch (_: TimeoutException) {
+ for (attempt in 1..3) try {
+ driver.get(flippingBookUrl)
+ break
+ } catch (_: TimeoutException) {
87
+ if (attempt != 3) {
88
log.warn("Retrying loading flipping book due to timeout...")
89
}
90
0 commit comments