use global GrumbleError for web exceptions

This commit is contained in:
mutantmonkey
2012-06-01 22:17:09 -07:00
parent 28cde318a8
commit 9add0985ec
16 changed files with 85 additions and 81 deletions

View File

@@ -9,7 +9,7 @@ http://inamidst.com/phenny/
import re, urllib.request, urllib.parse, urllib.error
import web
from tools import deprecated
from tools import deprecated, GrumbleError
r_from = re.compile(r'(?i)([+-]\d+):00 from')
@@ -29,9 +29,6 @@ def location(name):
lng = results['geonames'][0]['lng']
return name, countryName, lat, lng
class GrumbleError(object):
pass
def local(icao, hour, minute):
uri = ('http://www.flightstats.com/' +
'go/Airport/airportDetails.do?airportCode=%s')