diff --git a/lib/galaxy/datatypes/binary.py b/lib/galaxy/datatypes/binary.py index fa5352918990..0f53030b3d02 100644 --- a/lib/galaxy/datatypes/binary.py +++ b/lib/galaxy/datatypes/binary.py @@ -4299,9 +4299,7 @@ def sniff(self, filename: str) -> bool: try: npz = np.load(filename) if isinstance(npz, np.lib.npyio.NpzFile): - for f in npz.files: - if isinstance(npz[f], np.ndarray): - return True + return True except Exception: return False return False