mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-24 08:33:59 +00:00
Switch to a better method to detect 503s
This commit is contained in:
@@ -368,8 +368,7 @@ class WebService(QtCore.QObject):
|
||||
if (not request.max_retries_reached()
|
||||
and (code == 503
|
||||
or code == 429
|
||||
# following line is a workaround for Picard-809
|
||||
or errstr.endswith("Service Temporarily Unavailable")
|
||||
or error == 403
|
||||
)
|
||||
):
|
||||
retries = request.mark_for_retry()
|
||||
|
||||
Reference in New Issue
Block a user