@@ -783,7 +783,7 @@ def fields(self) -> GraphQLFieldMap:
783
783
"""Get provided fields, wrapping them as GraphQLFields if needed."""
784
784
try :
785
785
fields = resolve_thunk (self ._fields )
786
- except Exception as error : # noqa: BLE001
786
+ except Exception as error :
787
787
cls = GraphQLError if isinstance (error , GraphQLError ) else TypeError
788
788
msg = f"{ self .name } fields cannot be resolved. { error } "
789
789
raise cls (msg ) from error
@@ -801,7 +801,7 @@ def interfaces(self) -> tuple[GraphQLInterfaceType, ...]:
801
801
interfaces : Collection [GraphQLInterfaceType ] = resolve_thunk (
802
802
self ._interfaces # type: ignore
803
803
)
804
- except Exception as error : # noqa: BLE001
804
+ except Exception as error :
805
805
cls = GraphQLError if isinstance (error , GraphQLError ) else TypeError
806
806
msg = f"{ self .name } interfaces cannot be resolved. { error } "
807
807
raise cls (msg ) from error
@@ -888,7 +888,7 @@ def fields(self) -> GraphQLFieldMap:
888
888
"""Get provided fields, wrapping them as GraphQLFields if needed."""
889
889
try :
890
890
fields = resolve_thunk (self ._fields )
891
- except Exception as error : # noqa: BLE001
891
+ except Exception as error :
892
892
cls = GraphQLError if isinstance (error , GraphQLError ) else TypeError
893
893
msg = f"{ self .name } fields cannot be resolved. { error } "
894
894
raise cls (msg ) from error
@@ -906,7 +906,7 @@ def interfaces(self) -> tuple[GraphQLInterfaceType, ...]:
906
906
interfaces : Collection [GraphQLInterfaceType ] = resolve_thunk (
907
907
self ._interfaces # type: ignore
908
908
)
909
- except Exception as error : # noqa: BLE001
909
+ except Exception as error :
910
910
cls = GraphQLError if isinstance (error , GraphQLError ) else TypeError
911
911
msg = f"{ self .name } interfaces cannot be resolved. { error } "
912
912
raise cls (msg ) from error
@@ -992,7 +992,7 @@ def types(self) -> tuple[GraphQLObjectType, ...]:
992
992
"""Get provided types."""
993
993
try :
994
994
types : Collection [GraphQLObjectType ] = resolve_thunk (self ._types )
995
- except Exception as error : # noqa: BLE001
995
+ except Exception as error :
996
996
cls = GraphQLError if isinstance (error , GraphQLError ) else TypeError
997
997
msg = f"{ self .name } types cannot be resolved. { error } "
998
998
raise cls (msg ) from error
@@ -1350,7 +1350,7 @@ def fields(self) -> GraphQLInputFieldMap:
1350
1350
"""Get provided fields, wrap them as GraphQLInputField if needed."""
1351
1351
try :
1352
1352
fields = resolve_thunk (self ._fields )
1353
- except Exception as error : # noqa: BLE001
1353
+ except Exception as error :
1354
1354
cls = GraphQLError if isinstance (error , GraphQLError ) else TypeError
1355
1355
msg = f"{ self .name } fields cannot be resolved. { error } "
1356
1356
raise cls (msg ) from error
0 commit comments