scottjab/VatData — pull request #1 by marsol0x (2012-05-23 21:52:14+00:00)
Title: When refreshing data, check to see if you even can

Added code to refreshData to try with another data server is one returns a status other than 200, keeping track of the failures. If they all fail, exit the script.

There's probably a better way to handle the "if all else fails" part, but the current behavior is to fail, so I'm just going with that.