Skip to content
Snippets Groups Projects
Commit e99a5f22 authored by vlorentz's avatar vlorentz
Browse files

Make Origin type optional.

Needed by the replayer in swh-journal.
parent 100eb6dd
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,8 @@ class TimestampWithTimezone(BaseModel):
@attr.s
class Origin(BaseModel):
"""Represents a software source: a VCS and an URL."""
type = attr.ib(type=str)
url = attr.ib(type=str)
type = attr.ib(type=Optional[str], default=None)
@attr.s
......
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