From dbe52cf27326232df9df16d2e0f04dce581ebbaf Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 10 Feb 2023 19:44:03 +0000 Subject: [PATCH] Remove list comp on parameter of any() --- devine/core/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/service.py b/devine/core/service.py index 295ee76..cd5111c 100644 --- a/devine/core/service.py +++ b/devine/core/service.py @@ -41,7 +41,7 @@ class Service(metaclass=ABCMeta): if not self.proxy and self.GEOFENCE: # no explicit proxy, let's get one to GEOFENCE if needed current_region = get_ip_info(self.session)["country"].lower() - if not any([x.lower() == current_region for x in self.GEOFENCE]): + if not any(x.lower() == current_region for x in self.GEOFENCE): requested_proxy = self.GEOFENCE[0] # first is likely main region self.log.info(f"Current IP region is blocked by the service, getting Proxy to {requested_proxy}") # current region is not in any of the service's supported regions