Skip to content
Snippets Groups Projects
Commit a8af4ad5 authored by Thibault Allançon's avatar Thibault Allançon
Browse files

fuse: add error logging in main

parent 68c9dcb8
No related branches found
No related tags found
No related merge requests found
......@@ -216,10 +216,12 @@ async def main(swhids: List[SWHID], root_path: Path, conf: Dict[str, Any]) -> No
fuse_options = set(pyfuse3.default_options)
fuse_options.add("fsname=swhfs")
fuse_options.add("debug")
pyfuse3.init(fs, root_path, fuse_options)
try:
pyfuse3.init(fs, root_path, fuse_options)
await pyfuse3.main()
except Exception as e:
logging.error(f"Error running FUSE: {e}")
finally:
fs.shutdown()
pyfuse3.close(unmount=True)
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