Skip to content

Commit 8e9762f

Browse files
committed
Fix bug: config token vps_provider not found
1 parent 70fc61f commit 8e9762f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rotate_proxies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ def switch_in_proxy(self, proxy, proxy_id, region):
207207
""" Switch in a given proxy IP """
208208

209209
# Mark its switched out timestamp
210-
if self.config.vps_provider == 'linode':
210+
if self.vps_provider == 'linode':
211211
self.proxy_dict[proxy] = [proxy, int(region), int(proxy_id), int(time.time()), int(time.time())]
212-
elif self.config.vps_provider == 'aws':
212+
elif self.vps_provider == 'aws':
213213
self.proxy_dict[proxy] = [proxy, int(region), proxy_id, int(time.time()), int(time.time())]
214214
# Enable it
215215
self.proxy_state[proxy] = True

0 commit comments

Comments
 (0)