Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Nov 16, 2018
1 parent cf526ae commit f18072b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kinto_facebook/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _verify_token(self, access_token, request):
resp = requests.get(url, params=params)
try:
resp.raise_for_status()
except requests.exceptions.HTTPError as e:
except requests.exceptions.HTTPError:
logger.exception("Facebook Token Protocol Error")
raise httpexceptions.HTTPServiceUnavailable()
else:
Expand Down
2 changes: 1 addition & 1 deletion kinto_facebook/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def facebook_token(request):

try:
resp.raise_for_status()
except requests.exceptions.HTTPError as e:
except requests.exceptions.HTTPError:
logger.exception("Facebook Token Protocol Error")
raise httpexceptions.HTTPServiceUnavailable()
else:
Expand Down
1 change: 0 additions & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import mock
import requests
from requests.exceptions import HTTPError
import unittest
import webtest
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ deps =
install_command = pip install {opts} {packages}

[testenv:flake8]
commands = flake8 kinto_facebook
commands = flake8 kinto_facebook tests
deps =
flake8

Expand Down

0 comments on commit f18072b

Please sign in to comment.