When a PGP server such as pgp.mit.edu times out, an exception is raised which breaks outside of the 'for ks in keyservers' loop, so no further keyservers are attempted.
The code for this was repeated 4 times so I moved it to a function to shorten the code a bit. I included a try block inside the 'for ks in keyservers' loop so that multiple keyservers will be tried.
When a PGP server such as pgp.mit.edu times out, an exception is raised which breaks outside of the 'for ks in keyservers' loop, so no further keyservers are attempted.
The code for this was repeated 4 times so I moved it to a function to shorten the code a bit. I included a try block inside the 'for ks in keyservers' loop so that multiple keyservers will be tried.