mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 19:13:57 +03:00
Fixed flake8 issues
This commit is contained in:
parent
c38ffa5ffd
commit
fcef703eb5
|
@ -59,7 +59,7 @@ class ClientIDMutation(Mutation):
|
||||||
def on_resolve(payload):
|
def on_resolve(payload):
|
||||||
try:
|
try:
|
||||||
payload.client_mutation_id = input.get('client_mutation_id')
|
payload.client_mutation_id = input.get('client_mutation_id')
|
||||||
except:
|
except Exception:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
('Cannot set client_mutation_id in the payload object {}'
|
('Cannot set client_mutation_id in the payload object {}'
|
||||||
).format(repr(payload)))
|
).format(repr(payload)))
|
||||||
|
|
|
@ -96,7 +96,7 @@ class Node(AbstractNode):
|
||||||
try:
|
try:
|
||||||
_type, _id = cls.from_global_id(global_id)
|
_type, _id = cls.from_global_id(global_id)
|
||||||
graphene_type = info.schema.get_type(_type).graphene_type
|
graphene_type = info.schema.get_type(_type).graphene_type
|
||||||
except:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if only_type:
|
if only_type:
|
||||||
|
|
|
@ -8,7 +8,7 @@ from .scalars import Scalar
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import iso8601
|
import iso8601
|
||||||
except:
|
except ImportError:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
"iso8601 package is required for DateTime Scalar.\n"
|
"iso8601 package is required for DateTime Scalar.\n"
|
||||||
"You can install it using: pip install iso8601."
|
"You can install it using: pip install iso8601."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user