8000 Fix flake8 issues · sigmavirus24/github3.py@b551cb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit b551cb6

Browse files
committed
Fix flake8 issues
Ran into these in an unrelated PR. Signed-off-by: Jesse Keating <jkeating@j2solutions.net>
1 parent c82e90e commit b551cb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

github3/exceptions.py

Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, resp):
1818
#: List of errors provided by GitHub
1919
if error.get('errors'):
2020
self.errors = error.get('errors')
21-
except: # Amazon S3 error
21+
except Exception: # Amazon S3 error
2222
self.msg = resp.content or '[No message]'
2323

2424
def __repr__(self):
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ def test_gitignore_templates(self):
216216
"""Test the ability to retrieve a list of gitignore templates."""
217217
cassette_name = self.cassette_name('gitignore_templates')
218218
with self.recorder.use_cassette(cassette_name):
219-
l = self.gh.gitignore_templates()
219+
thelist = self.gh.gitignore_templates()
220220

< 5D40 code>221-
assert l != []
222-
assert isinstance(l, list)
221+
assert thelist != []
222+
assert isinstance(thelist, list)
223223

224224
def test_is_following(self):
225225
"""Test the ability to check if a user is being followed."""