Skip to content
Snippets Groups Projects
Commit 64a7f620 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

model: Make message field optional in Release model

A release may have an empty message, for instance those derived from
a Mercurial repository.

So make that field optional to avoid type validation errors.
parent 074c2104
No related branches found
No related tags found
No related merge requests found
......@@ -371,7 +371,7 @@ class Release(BaseModel, HashableObject):
type=bytes,
validator=type_validator())
message = attr.ib(
type=bytes,
type=Optional[bytes],
validator=type_validator())
target = attr.ib(
type=Optional[Sha1Git],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment