'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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user