From 0f55b8e80a03b9a1efb41c9dd990fc36fa77e37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 30 Aug 2020 20:51:22 +0200 Subject: [PATCH] [exhentai] fix type check from dbbbb21 (#940) 'bool' is a subclass of 'int', and therefore 'isinstance(self.limits, int)' also returns True when 'self.limits' has a boolean value --- gallery_dl/extractor/exhentai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index 88f1bc50..80c71875 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -47,7 +47,7 @@ class ExhentaiExtractor(Extractor): self.wait_min = self.config("wait-min", 3) self.wait_max = self.config("wait-max", 6) - if isinstance(self.limits, int): + if type(self.limits) is int: self._limit_max = self.limits self.limits = True else: