diff --git a/swh/fuse/fuse.py b/swh/fuse/fuse.py --- a/swh/fuse/fuse.py +++ b/swh/fuse/fuse.py @@ -115,6 +115,8 @@ raise async def get_history(self, swhid: SWHID) -> List[SWHID]: + """ Retrieve a revision's history using Software Heritage Graph API """ + if swhid.object_type != REVISION: raise pyfuse3.FUSEError(errno.EINVAL)