Switch to a better method to detect 503s

This commit is contained in:
Sambhav Kothari
2017-07-21 15:53:20 +05:30
parent f2ad0ba5ef
commit 49fb9bcd00

View File

@@ -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()