From a1279cf0d665e530e5e786be7468d4e47895ec16 Mon Sep 17 00:00:00 2001 From: Osmo Salomaa Date: Sat, 3 May 2014 17:58:42 +0300 Subject: [PATCH] Remove unused error variable. --- poor/geocoder.py | 2 +- poor/router.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poor/geocoder.py b/poor/geocoder.py index 807e82b..eebd9be 100644 --- a/poor/geocoder.py +++ b/poor/geocoder.py @@ -69,7 +69,7 @@ def geocode(self, query, x=0, y=0, xmin=-180, xmax=180, ymin=-90, ymax=90, try: results = self._provider.geocode( query, xmin, xmax, ymin, ymax, nmax) - except Exception as error: + except Exception: # XXX: Should we relay an error message to QML? print("Geocoding failed:", file=sys.stderr) traceback.print_exc() diff --git a/poor/router.py b/poor/router.py index 6faaf26..5ea2936 100644 --- a/poor/router.py +++ b/poor/router.py @@ -87,7 +87,7 @@ def route(self, fm, to): """ try: return self._provider.route(fm, to) - except Exception as error: + except Exception: # XXX: Should we relay an error message to QML? print("Routing failed:", file=sys.stderr) traceback.print_exc()