Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Remove unused error variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
otsaloma committed May 3, 2014
1 parent 5240330 commit a1279cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poor/geocoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion poor/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a1279cf

Please sign in to comment.