Skip to content

Commit 9940ee8

Browse files
Badiboysebastienvercammen
authored andcommitted
Fix IndexError exception when using proxies (single, or none/round)
* Bugfix in getting next proxy Simple mistake
1 parent a6e5e92 commit 9940ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pogom/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get_new_proxy(args):
179179

180180
# If none/round - simply get next proxy
181181
if (args.proxy_rotation is None) or (args.proxy_rotation == 'none') or (args.proxy_rotation == 'round'):
182-
if last_proxy >= len(args.proxy):
182+
if last_proxy >= len(args.proxy) - 1:
183183
last_proxy = 0
184184
else:
185185
last_proxy = last_proxy + 1

0 commit comments

Comments
 (0)