Page MenuHomeSoftware Heritage

D1886.id6325.diff
No OneTemporary

D1886.id6325.diff

diff --git a/swh/model/model.py b/swh/model/model.py
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -227,6 +227,8 @@
rel = attr.asdict(self)
rel['date'] = self.date.to_dict() if self.date is not None else None
rel['target_type'] = rel['target_type'].value
+ if rel['metadata'] is None:
+ del rel['metadata']
return rel
@classmethod

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 1:28 AM (18 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227618

Event Timeline