Missing parentheses causes uncaught exception on connection error
cmicek1 opened this issue · 1 comments
cmicek1 commented
There should be an extra set of parentheses around i+1
on line 188 of PushshiftAPI.py
:
log.debug("Connection error caught, retrying. Connection attempts so far: %s" % (i+1))
instead of
log.debug("Connection error caught, retrying. Connection attempts so far: %s" % i+1)
.
Otherwise Python thinks you're concatenating a string and an int, and gets mad.
jfa501 commented
I have also come across this issue and agree that an extra set of parentheses would solve this.