glidernet / ogn-python

A gateway with built-in database for the Open Glider Network (OGN)
http://glidernet.org
GNU Affero General Public License v3.0
17 stars 4 forks source link

get_ddb fails with non csv #51

Closed Meisterschueler closed 3 years ago

Meisterschueler commented 8 years ago

ddb.glidernet.org sometimes respond with a error instead of csv:

<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>

flarm.address = row[1] in ogn-python/ogn/utils.py fails

snip commented 8 years ago

The client should look at HTTP error message.

Meisterschueler commented 3 years ago

Code changed