Fixed flake8 issues

This commit is contained in:
Syrus Akbary 2017-10-25 10:26:31 -07:00
parent c38ffa5ffd
commit fcef703eb5
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class ClientIDMutation(Mutation):
def on_resolve(payload):
try:
payload.client_mutation_id = input.get('client_mutation_id')
except:
except Exception:
raise Exception(
('Cannot set client_mutation_id in the payload object {}'
).format(repr(payload)))

View File

@ -96,7 +96,7 @@ class Node(AbstractNode):
try:
_type, _id = cls.from_global_id(global_id)
graphene_type = info.schema.get_type(_type).graphene_type
except:
except Exception:
return None
if only_type:

View File

@ -8,7 +8,7 @@ from .scalars import Scalar
try:
import iso8601
except:
except ImportError:
raise ImportError(
"iso8601 package is required for DateTime Scalar.\n"
"You can install it using: pip install iso8601."