From 85989ad4d3a6fbe432a52cfd32d7917d167642f6 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 31 Oct 2017 16:20:19 -0400 Subject: [PATCH] Lowered internal timeout for post search --- src/main/cogs/booru.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index f9e12d4..26ce315 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -594,7 +594,7 @@ class MsG: empty = 0 c = 0 while len(posts) < limit: - if c == limit * 5 + self.LIMIT: + if c == limit * 5 + (self.LIMIT / 5): raise exc.Timeout request = await u.fetch('https://{}.net/post/index.json'.format(booru), params={'tags': ','.join([order] + tags), 'limit': int(self.LIMIT * limit)}, json=True) if len(request) == 0: