[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
This commit is contained in:
Mike Fährmann
2020-08-30 20:51:22 +02:00
parent e33293fdd8
commit 0f55b8e80a

View File

@@ -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: