psaw ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
On inspecting the stack trace there were a couple of exceptions the final of which was not handled and terminated the program.
Final error
log.debug("Connection error caught, retrying. Connection attempts so far: %s" % i+1)
TypeError: can only concatenate str (not "int") to str
I did not capture the full stack trace at the time and am currently unable to replicate but it was resolved with the proposed change.
I hit an error