Skip to content

Commit

Permalink
Merge pull request #11 from rwth-iat/http_api/improve_IdentifierConve…
Browse files Browse the repository at this point in the history
…rter_error_messages

adapter.http: remove hardcoded encoding from error messages
  • Loading branch information
jkhsjdhjs committed Mar 6, 2024
2 parents 1d2813e + 712df72 commit d424ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basyx/aas/adapter/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def to_python(self, value: str) -> model.Identifier:
except binascii.Error:
raise BadRequest(f"Encoded identifier {value} is invalid base64url!")
except UnicodeDecodeError:
raise BadRequest(f"Encoded base64url value is not a valid utf-8 string!")
raise BadRequest(f"Encoded base64url value is not a valid {self.encoding} string!")
return decoded


Expand Down

0 comments on commit d424ace

Please sign in to comment.