Skip to content

Commit 29db406

Browse files
committed
Fixed flake8 issues
1 parent ddb6302 commit 29db406

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

graphql/execution/executors/asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def ensure_future(coro_or_future, loop=None):
3030

3131
try:
3232
from .asyncio_utils import asyncgen_to_observable, isasyncgen
33-
except:
33+
except Exception:
3434
def isasyncgen(obj): False
3535

3636
def asyncgen_to_observable(asyncgen): pass

graphql/pyutils/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ def get_git_changeset():
7373
)
7474
timestamp = git_log.communicate()[0]
7575
timestamp = datetime.datetime.utcfromtimestamp(int(timestamp))
76-
except:
76+
except Exception:
7777
return None
7878
return timestamp.strftime('%Y%m%d%H%M%S')

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
exclude = tests,scripts,setup.py,docs
2+
exclude = tests,scripts,setup.py,docs,graphql/execution/executors/asyncio_utils.py
33
max-line-length = 160
44

55
[bdist_wheel]

0 commit comments

Comments
 (0)