nanotube / supybot-bitcoin-marketmonitor

Some bitcoin and supybot-related code.
145 stars 83 forks source link

Fallback when PGP Servers timeout #35

Closed waldher closed 11 years ago

waldher commented 11 years ago

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.

nanotube commented 11 years ago

Thanks for your report, and code contribution. :) I fixed it up a bit and moved some things around, and it is now merged.