Update node.py

This commit is contained in:
Yasser Tahiri 2021-12-02 12:04:07 +01:00 committed by GitHub
parent 9e17044ddc
commit 7108bc8577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,9 @@ class Node(AbstractNode):
_type, _id = cls.from_global_id(global_id) _type, _id = cls.from_global_id(global_id)
except Exception as e: except Exception as e:
raise Exception( raise Exception(
f'Unable to parse global ID "{global_id}". Make sure it is a base64 encoded string in the format: "TypeName:id". Exception message: {e}' f'Unable to parse global ID "{global_id}". '
'Make sure it is a base64 encoded string in the format: "TypeName:id". '
f"Exception message: {e}"
) )
graphene_type = info.schema.get_type(_type) graphene_type = info.schema.get_type(_type)