diff --git a/lib/galaxy/datatypes/binary.py b/lib/galaxy/datatypes/binary.py index de47ca2548ae..9366456f593f 100644 --- a/lib/galaxy/datatypes/binary.py +++ b/lib/galaxy/datatypes/binary.py @@ -4331,9 +4331,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