wrekatlanta / wrektranet

New intranet for Georgia Tech's student-run radio station, WREK.
wrek.org
MIT License
9 stars 2 forks source link

T-log won't load when Arc16 power readings are inaccessible #57

Open radioblazer opened 9 years ago

mmanguno commented 8 years ago

The issue seems to stem from Arc16 hanging on something, and the Nokogiri command to scrape the XML from the webpage hangs forever. Namely, this line

doc = Nokogiri::XML(open('http://opdesk.wrek.org/engineering/arc16xml.php'))

never times out. Even though it is wrapped in a try-block. So we need to wrap it in some timeout thing.