From ef99b77d80e612c49cc2c7ff525edb6be7426e22 Mon Sep 17 00:00:00 2001 From: ihaveahax Date: Fri, 6 Dec 2024 15:35:05 -0600 Subject: [PATCH] Revert "mount.ncch: catch mount errors with exefs/romfs" This reverts commit a8f94b522a2f23bda850293f45197da72792b175. --- ninfs/mount/ncch.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ninfs/mount/ncch.py b/ninfs/mount/ncch.py index 7c52a27..427fa9b 100644 --- a/ninfs/mount/ncch.py +++ b/ninfs/mount/ncch.py @@ -66,20 +66,12 @@ class NCCHContainerMount(LoggingMixIn, Operations): if NCCHSection.ExeFS in self.reader.sections: self.files['/exefs.bin'] = NCCHSection.ExeFS - try: - self.exefs_fuse = ExeFSMount(self.reader.exefs, g_stat=self.g_stat, decompress_code=True) - self.exefs_fuse.init(path) - except Exception as e: - print(f'Failed to mount ExeFS: {type(e).__name__}: {e}') - self.exefs_fuse = None + self.exefs_fuse = ExeFSMount(self.reader.exefs, g_stat=self.g_stat, decompress_code=True) + self.exefs_fuse.init(path) if NCCHSection.RomFS in self.reader.sections: self.files['/romfs.bin'] = NCCHSection.RomFS - try: - self.romfs_fuse = RomFSMount(self.reader.romfs, g_stat=self.g_stat) - except Exception as e: - print(f'Failed to mount ExeFS: {type(e).__name__}: {e}') - self.romfs_fuse = None + self.romfs_fuse = RomFSMount(self.reader.romfs, g_stat=self.g_stat) @_c.ensure_lower_path def getattr(self, path, fh=None):