mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 09:36:44 +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):
|
||||
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)))
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue
Block a user