Move CloudFlareProtectedException to test sources

This commit is contained in:
2023-07-28 14:35:13 +03:00
parent 74ffe9418b
commit d24ab347cb
3 changed files with 18 additions and 42 deletions

View File

@@ -57,7 +57,7 @@
data-bs-toggle="modal" style="cursor: pointer;">
<i data-feather="power"></i>
</td>
{% elseif case.failure.type == 'org.koitharu.kotatsu.parsers.exception.CloudFlareProtectedException' %}
{% elseif case.failure.type == 'org.koitharu.kotatsu.parsers.CloudFlareProtectedException' %}
<td class="table-secondary text-center" data-bs-target="#failure_{{ case.hashCode }}"
data-bs-toggle="modal" style="cursor: pointer;">
<i data-feather="shield"></i>
@@ -101,29 +101,6 @@
feather.replace()
</script>
</body>
</html>

View File

@@ -3,7 +3,6 @@ package org.koitharu.kotatsu.parsers
import okhttp3.Interceptor
import okhttp3.Response
import okhttp3.internal.closeQuietly
import org.koitharu.kotatsu.parsers.exception.CloudFlareProtectedException
import java.net.HttpURLConnection
private const val HEADER_SERVER = "Server"

View File

@@ -1,4 +1,4 @@
package org.koitharu.kotatsu.parsers.exception
package org.koitharu.kotatsu.parsers
import okhttp3.Headers
import okio.IOException