Skip to content

Commit fcef703

Browse files
committed
Fixed flake8 issues
1 parent c38ffa5 commit fcef703

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

graphene/relay/mutation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def mutate(cls, root, info, input):
5959
def on_resolve(payload):
6060
try:
6161
payload.client_mutation_id = input.get('client_mutation_id')
62-
except:
62+
except Exception:
6363
raise Exception(
6464
('Cannot set client_mutation_id in the payload object {}'
6565
).format(repr(payload)))

graphene/relay/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_node_from_global_id(cls, info, global_id, only_type=None):
9696
try:
9797
_type, _id = cls.from_global_id(global_id)
9898
graphene_type = info.schema.get_type(_type).graphene_type
99-
except:
99+
except Exception:
100100
return None
101101

102102
if only_type:

graphene/types/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
try:
1010
import iso8601
11-
except:
11+
except ImportError:
1212
raise ImportError(
1313
"iso8601 package is required for DateTime Scalar.\n"
1414
"You can install it using: pip install iso8601."

0 commit comments

Comments
 (0)