diff --git a/xrpl/models/transactions/credential_create.py b/xrpl/models/transactions/credential_create.py index 9937b3a80..037d276c1 100644 --- a/xrpl/models/transactions/credential_create.py +++ b/xrpl/models/transactions/credential_create.py @@ -69,7 +69,7 @@ def _get_uri_error(self: Self) -> Optional[str]: errors = [] if len(self.uri) == 0: errors.append("Length must be > 0.") - if len(self.uri) > _MAX_URI_LENGTH: + elif len(self.uri) > _MAX_URI_LENGTH: errors.append(f"Length must be < {_MAX_URI_LENGTH}.") if not HEX_REGEX.fullmatch(self.uri): errors.append("Must be encoded in hex.")