Skip to content

Commit 68006b7

Browse files
committed
ignore sleep as well for account_info calls
1 parent 2bcbb60 commit 68006b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

domaintools/base_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _get_results(self):
140140
wait_for = self._wait_time()
141141
if self.api.rate_limit and (wait_for is None or self.product == "account-information"):
142142
data = self._make_request()
143-
if data.status_code == 503: # pragma: no cover
143+
if data.status_code == 503 and self.product != "account-information": # pragma: no cover
144144
sleeptime = 60
145145
log.info(
146146
"503 encountered for [%s] - sleeping [%s] seconds before retrying request.",

0 commit comments

Comments
 (0)